mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-12-24 17:01:48 +01:00
dedicated_room: fix crash (count != 0) when closing the room
This commit is contained in:
parent
4f19d380f5
commit
62014e8f34
@ -329,17 +329,7 @@ int main(int argc, char** argv) {
|
|||||||
std::string in;
|
std::string in;
|
||||||
std::cin >> in;
|
std::cin >> in;
|
||||||
if (in.size() > 0) {
|
if (in.size() > 0) {
|
||||||
if (announce) {
|
break;
|
||||||
announce_session->Stop();
|
|
||||||
}
|
|
||||||
announce_session.reset();
|
|
||||||
// Save the ban list
|
|
||||||
if (!ban_list_file.empty()) {
|
|
||||||
SaveBanList(room->GetBanList(), ban_list_file);
|
|
||||||
}
|
|
||||||
room->Destroy();
|
|
||||||
Network::Shutdown();
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user