Commit 1b3a0665 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

If we decide not to eliminate the worker thread, properly do so.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2654 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent ea859f03
......@@ -388,6 +388,8 @@ wrk_decimate_flock(struct wq *qp, double t_idle)
w = VTAILQ_LAST(&qp->idle, workerhead);
if (w != NULL && (w->used < t_idle || qp->nthr > nthr_max))
VTAILQ_REMOVE(&qp->idle, w, list);
else
w = NULL;
UNLOCK(&qp->mtx);
/* And give it a kiss on the cheek... */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment