corrected default value of Server.MsgAcceptFunc as documented (#920)

the description says DefaultMsgAcceptFunc but actually defaultMsgAcceptFunc
was used.
This commit is contained in:
JINMEI Tatuya 2019-03-06 23:02:29 -08:00 committed by Miek Gieben
parent 72df20724e
commit e838e1e3ce
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ func (srv *Server) init() {
srv.UDPSize = MinMsgSize srv.UDPSize = MinMsgSize
} }
if srv.MsgAcceptFunc == nil { if srv.MsgAcceptFunc == nil {
srv.MsgAcceptFunc = defaultMsgAcceptFunc srv.MsgAcceptFunc = DefaultMsgAcceptFunc
} }
srv.udpPool.New = makeUDPBuffer(srv.UDPSize) srv.udpPool.New = makeUDPBuffer(srv.UDPSize)