From 62014e8f34c7bbd05f8957169efe6b5cf58ff0dd Mon Sep 17 00:00:00 2001 From: vvanelslande Date: Sun, 10 Nov 2019 16:54:05 -0500 Subject: [PATCH] dedicated_room: fix crash (count != 0) when closing the room --- src/dedicated_room/citra-room.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/dedicated_room/citra-room.cpp b/src/dedicated_room/citra-room.cpp index ea9262046f..7534966486 100644 --- a/src/dedicated_room/citra-room.cpp +++ b/src/dedicated_room/citra-room.cpp @@ -329,17 +329,7 @@ int main(int argc, char** argv) { std::string in; std::cin >> in; if (in.size() > 0) { - if (announce) { - 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; + break; } std::this_thread::sleep_for(std::chrono::milliseconds(100)); }