summaryrefslogtreecommitdiffstats
path: root/src/ThreadGame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ThreadGame.cpp')
-rw-r--r--src/ThreadGame.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ThreadGame.cpp b/src/ThreadGame.cpp
index ef7a95e..5e1d710 100644
--- a/src/ThreadGame.cpp
+++ b/src/ThreadGame.cpp
@@ -25,6 +25,8 @@ void ThreadGame::Execute() {
listener.RegisterHandler(EventType::Disconnected, [this](EventData eventData) {
std::this_thread::sleep_for(std::chrono::milliseconds(500));
+ if (!gs)
+ return;
gs->gs.reset();
gs.reset();
});