2
0
Fork 0

Release mainaction before stopping workers

personal/stbuehler/wip
Stefan Bühler 2013-05-02 13:02:04 +02:00
parent 224f623494
commit f2ade38923
1 changed files with 5 additions and 0 deletions

View File

@ -743,6 +743,11 @@ static void li_server_start_transition(liServer *srv, liServerState state) {
/* wait for closed connections and plugins */
break;
case LI_SERVER_STOPPING:
{
liAction* mainaction = srv->mainaction;
srv->mainaction = NULL;
li_action_release(srv, mainaction);
}
/* stop all workers */
for (i = 0; i < srv->worker_count; i++) {
liWorker *wrk;