This commit is contained in:
aozhiwei 2021-08-11 11:51:13 +08:00
commit 83ce4e8334

View File

@ -108,6 +108,7 @@ void Room::UnInit()
A8_SAFE_DELETE(incubator_); A8_SAFE_DELETE(incubator_);
timer_attacher.ClearTimerList(); timer_attacher.ClearTimerList();
xtimer_attacher_.ClearTimerList(); xtimer_attacher_.ClearTimerList();
grid_service->ClearRoomData(this);
for (auto& pair : accountid_hash_) { for (auto& pair : accountid_hash_) {
PlayerMgr::Instance()->RemovePlayerBySocket(pair.second->socket_handle); PlayerMgr::Instance()->RemovePlayerBySocket(pair.second->socket_handle);
} }
@ -127,7 +128,6 @@ void Room::UnInit()
delete pair.second; delete pair.second;
} }
team_hash_.clear(); team_hash_.clear();
grid_service->ClearRoomData(this);
PerfMonitor::Instance()->alive_count -= alive_count_; PerfMonitor::Instance()->alive_count -= alive_count_;
} }