diff --git a/src/listener.c b/src/listener.c index e9a4bee1a..ceb52af0d 100644 --- a/src/listener.c +++ b/src/listener.c @@ -896,7 +896,7 @@ void listener_accept(int fd) #if defined(USE_THREAD) mask = thread_mask(l->bind_conf->bind_thread) & all_threads_mask; - if (atleast2(mask) && (global.tune.options & GTUNE_LISTENER_MQ)) { + if (atleast2(mask) && (global.tune.options & GTUNE_LISTENER_MQ) && !stopping) { struct accept_queue_ring *ring; unsigned int t, t0, t1, t2;