no message
This commit is contained in:
parent
2ed8885e18
commit
3519bedc03
|
@ -4,6 +4,7 @@ import (
|
|||
"mongo.games.com/goserver/core/logger"
|
||||
|
||||
"mongo.games.com/game/common"
|
||||
"mongo.games.com/game/model"
|
||||
"mongo.games.com/game/protocol/server"
|
||||
)
|
||||
|
||||
|
@ -11,7 +12,9 @@ func init() {
|
|||
common.RegisterServerCtrlCallback(func(msg *server.ServerCtrl) {
|
||||
switch msg.GetCtrlCode() {
|
||||
case common.SrvCtrlStateSwitchCode:
|
||||
common.SrvIsMaintaining = !common.SrvIsMaintaining
|
||||
if model.GameParamData.SrvMaintain {
|
||||
common.SrvIsMaintaining = !common.SrvIsMaintaining
|
||||
}
|
||||
|
||||
default:
|
||||
logger.Logger.Errorf("unknown server ctrl code:%d", msg.GetCtrlCode())
|
||||
|
|
Loading…
Reference in New Issue