Release mainaction before stopping workers

personal/stbuehler/wip
Stefan Bühler 10 years ago
parent 224f623494
commit f2ade38923
  1. 5
      src/main/server.c

@ -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;

Loading…
Cancel
Save