summaryrefslogtreecommitdiff
path: root/idle.c
diff options
context:
space:
mode:
Diffstat (limited to 'idle.c')
-rw-r--r--idle.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/idle.c b/idle.c
index 8fac1f0..5f7ed17 100644
--- a/idle.c
+++ b/idle.c
@@ -252,6 +252,8 @@ idle_check_handshake_reply(struct cfg *cfg, struct uring_task *task, int res)
if (player_count < 0)
goto out;
+ idle->server->state = SERVER_STATE_RUNNING;
+
debug(DBG_IDLE, "%s: currently %i active players\n",
idle->server->name, player_count);
@@ -301,6 +303,7 @@ idle_check_connected_cb(struct cfg *cfg, struct connection *conn, bool connected
"idle check connection to remote server (%s) failed\n",
idle->server->name);
idle->server->idle_count = 0;
+ idle->server->state = SERVER_STATE_STOPPED;
return;
}