diff --git a/src/haproxy.c b/src/haproxy.c index 145c19af9..e8c209e95 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -2818,7 +2818,7 @@ void run_poll_loop() if (stopping) { /* stop muxes before acknowledging stopping */ - if (!(tg_ctx->stopping_threads & tid_bit)) { + if (!(tg_ctx->stopping_threads & ti->ltid_bit)) { task_wakeup(mux_stopping_data[tid].task, TASK_WOKEN_OTHER); wake = 1; }