From 917f49c8bf99545b4ea39413b6d13a543a938295 Mon Sep 17 00:00:00 2001 From: lotodore Date: Sat, 5 Oct 2013 13:10:40 +0200 Subject: [PATCH] Fixing missing if-block. --- src/net/common/serverlobbythread.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/net/common/serverlobbythread.cpp b/src/net/common/serverlobbythread.cpp index aa7dc50a..128a1ef0 100644 --- a/src/net/common/serverlobbythread.cpp +++ b/src/net/common/serverlobbythread.cpp @@ -1835,8 +1835,10 @@ ServerLobbyThread::TimerRemoveGame(const boost::system::error_code &ec) ++next; boost::shared_ptr tmpGame = i->second; if (!tmpGame->GetSessionManager().HasSessionWithState(SessionData::Game)) + { tmpGame->MoveSpectatorsToLobby(); InternalRemoveGame(tmpGame); // This will delete the game. + } i = next; } // Restart timer