This commit is contained in:
aozhiwei 2023-11-03 19:40:18 +08:00
commit c7343f79ee
2 changed files with 4 additions and 4 deletions

View File

@ -203,7 +203,7 @@ bool App::Init(int argc, char* argv[])
f8::UdpLog::Instance()->Info("gameserver starting instance_id:%d pid:%d debug_mode:%d channel:%d", f8::UdpLog::Instance()->Info("gameserver starting instance_id:%d pid:%d debug_mode:%d channel:%d",
{ {
instance_id_, instance_id_,
getpid(), getpid(),
debug_mode, debug_mode,
JsonDataMgr::Instance()->channel JsonDataMgr::Instance()->channel
@ -226,7 +226,7 @@ bool App::Init(int argc, char* argv[])
[] (int event, const a8::Args* args) [] (int event, const a8::Args* args)
{ {
if (a8::TIMER_EXEC_EVENT == event) { if (a8::TIMER_EXEC_EVENT == event) {
App::Instance()->terminated_ = true; App::Instance()->Terminate();
} }
} }
); );

View File

@ -165,8 +165,8 @@ namespace mt
abort(); abort();
} }
#ifdef DEBUG #ifdef DEBUG
if (App::Instance()->instance_id == 600 || if (App::Instance()->GetInstanceId() == 600 ||
App::Instance()->instance_id == 100) { App::Instance()->GetInstanceId() == 100) {
_float_cd = 6; _float_cd = 6;
} }
#endif #endif