Skip to content
Snippets Groups Projects
Commit 7da26d40 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Set server_stopped back to FALSE if a server is restarted (via recycle)

A set_state() may be called with SERVER_STOPPED while recycling.
parent c4d90584
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3586 passed
......@@ -215,7 +215,7 @@ static bool server_ready(enum server_type type)
static bool any_server_running()
{
for(int i = 0; i < SERVER_COUNT; i++)
if(server_state[i] != SERVER_STOPPED)
if(server_running(i))
return true;
return false;
}
......@@ -603,8 +603,7 @@ static void set_state(void* cbdata, enum server_state state)
}
}
#endif
if(state == SERVER_STOPPED)
server_stopped[server_type] = TRUE;
server_stopped[server_type] = (state == SERVER_STOPPED);
}
static void thread_up(void* p, BOOL up, BOOL setuid)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment