diff options
Diffstat (limited to 'idle.c')
-rw-r--r-- | idle.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |