summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game-server/main-game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game-server/main-game.cpp b/src/game-server/main-game.cpp
index 050f42b9..0062f900 100644
--- a/src/game-server/main-game.cpp
+++ b/src/game-server/main-game.cpp
@@ -321,7 +321,7 @@ int main(int argc, char *argv[])
// Try again after longer and longer intervals when connection fails.
bool isConnected = false;
int waittime = 0;
- while (!isConnected)
+ while (!isConnected && running)
{
LOG_INFO("Connecting to account server");
isConnected = accountHandler->start(options.port);