From 84d822063ba660b5bdddeb15628cc9c073d9bbd3 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 8 Jan 2016 13:49:55 +1100 Subject: [PATCH] Fix missing worker/user count dropping in node mode when clients disconnect --- src/connector.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/connector.c b/src/connector.c index bbe32eec..a440e5a2 100644 --- a/src/connector.c +++ b/src/connector.c @@ -373,9 +373,9 @@ static int invalidate_client(ckpool_t *ckp, cdata_t *cdata, client_instance_t *c int ret; ret = drop_client(cdata, client); - if (!ckp->passthrough && !client->passthrough) + if ((!ckp->passthrough || ckp->node) && !client->passthrough) stratifier_drop_client(ckp, client); - else if (ckp->passthrough) + if (ckp->passthrough) generator_drop_client(ckp, client); /* Cull old unused clients lazily when there are no more reference