Browse Source

Fix missing worker/user count dropping in node mode when clients disconnect

master
Con Kolivas 9 years ago
parent
commit
84d822063b
  1. 4
      src/connector.c

4
src/connector.c

@ -373,9 +373,9 @@ static int invalidate_client(ckpool_t *ckp, cdata_t *cdata, client_instance_t *c
int ret; int ret;
ret = drop_client(cdata, client); ret = drop_client(cdata, client);
if (!ckp->passthrough && !client->passthrough) if ((!ckp->passthrough || ckp->node) && !client->passthrough)
stratifier_drop_client(ckp, client); stratifier_drop_client(ckp, client);
else if (ckp->passthrough) if (ckp->passthrough)
generator_drop_client(ckp, client); generator_drop_client(ckp, client);
/* Cull old unused clients lazily when there are no more reference /* Cull old unused clients lazily when there are no more reference

Loading…
Cancel
Save