多网络服务器启动器
This commit is contained in:
@@ -64,7 +64,12 @@ func (slf *event) OnConnectionReceivePacketEvent(conn *Conn, packet []byte) {
|
||||
}
|
||||
|
||||
func (slf *event) check() {
|
||||
if slf.network != NetworkHttp && len(slf.connectionReceivePacketEventHandles) == 0 {
|
||||
log.Warn("Server", zap.String("ConnectionReceivePacketEvent", "Invalid server, no packets processed"))
|
||||
switch slf.network {
|
||||
case NetworkHttp, NetworkGRPC:
|
||||
default:
|
||||
if len(slf.connectionReceivePacketEventHandles) == 0 {
|
||||
log.Warn("Server", zap.String("ConnectionReceivePacketEvent", "Invalid server, no packets processed"))
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user