diff --git a/src/worker.c b/src/worker.c index 332b098..4a48858 100644 --- a/src/worker.c +++ b/src/worker.c @@ -1875,6 +1875,10 @@ void workers_stop(int stop_all) * It's cool enough to be able to reconfigure at all. */ w = worker_threads; + if (w == NULL) { + hlog(LOG_CRIT, "Cannot stop worker threads, none running"); + abort(); + } while ((w) && (w->next)) w = w->next;