Removed duplicated test for UDPSize

This commit is contained in:
Bryan Boreham 2014-11-18 15:59:40 +00:00
parent dc30c7cd4e
commit 61478ac390
1 changed files with 0 additions and 3 deletions

View File

@ -286,9 +286,6 @@ func (srv *Server) ActivateAndServe() error {
srv.stopUDP, srv.stopTCP = make(chan bool), make(chan bool)
srv.started = true
srv.lock.Unlock()
if srv.UDPSize == 0 {
srv.UDPSize = MinMsgSize
}
if srv.PacketConn != nil {
if srv.UDPSize == 0 {
srv.UDPSize = MinMsgSize