This commit is contained in:
aozhiwei 2023-10-14 16:12:17 +08:00
parent 34d15e9408
commit a79aca1198

View File

@ -11,6 +11,7 @@
#include <f8/udplog.h> #include <f8/udplog.h>
#include <f8/utils.h> #include <f8/utils.h>
#include <f8/timer.h> #include <f8/timer.h>
#include <f8/btmgr.h>
#include "playermgr.h" #include "playermgr.h"
#include "player.h" #include "player.h"
@ -186,6 +187,8 @@ void Room::UnInit()
for (auto& pair : team_hash_) { for (auto& pair : team_hash_) {
delete pair.second; delete pair.second;
} }
f8::BtMgr::Instance()->BtDestory(room_agent_);
room_agent_ = nullptr;
team_hash_.clear(); team_hash_.clear();
A8_SAFE_DELETE(frame_event_data); A8_SAFE_DELETE(frame_event_data);
PerfMonitor::Instance()->alive_count -= alive_count_; PerfMonitor::Instance()->alive_count -= alive_count_;