From c62e2cd49649109f0135e56ee8add0dab2254d01 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sun, 20 Aug 2017 20:21:29 +0500 Subject: 2017-08-20 --- src/ThreadGame.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ThreadGame.cpp') 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(); }); -- cgit v1.2.3