From 4fdcfae52047e50d463a5b918288f9f5d64a5782 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 4 Jun 2019 15:29:27 +0800 Subject: [PATCH] 1 --- server/gameserver/app.cc | 2 +- server/gameserver/roommgr.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/gameserver/app.cc b/server/gameserver/app.cc index aa8f439..008c281 100755 --- a/server/gameserver/app.cc +++ b/server/gameserver/app.cc @@ -56,7 +56,7 @@ static void SavePerfLog() a8::UdpLog::Instance()->Info("max_mainloop_rundelay:%d room_num:%d player_num:%d online_num:%d", { App::Instance()->perf.max_run_delay_time, - RoomMgr::Instance()->RoomNum() + RoomMgr::Instance()->RoomNum(), 0, PlayerMgr::Instance()->OnlineNum() }); diff --git a/server/gameserver/roommgr.cc b/server/gameserver/roommgr.cc index e8c60ee..f5c7ec9 100644 --- a/server/gameserver/roommgr.cc +++ b/server/gameserver/roommgr.cc @@ -162,6 +162,7 @@ Room* RoomMgr::GetRoomByUuid(long long room_uuid) void RoomMgr::AddOverRoom(long long room_uuid) { + inactive_room_hash_.erase(room_uuid); a8::Timer::Instance()->AddDeadLineTimer(1000, a8::XParams() .SetSender(room_uuid),