Merge pull request #155 from bboreham/small_fix

Remove duplicated test for UDPSize
This commit is contained in:
Miek Gieben 2014-11-18 16:15:26 +00:00
commit 901b88b70a
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