Commit 7da26d40 authored by Rob Swindell's avatar Rob Swindell 💬
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
Pipeline #3586 passed with stage
in 6 minutes and 10 seconds
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment