Browse Source

Check for client ref counts in dropall

master
Con Kolivas 10 years ago
parent
commit
745d95246c
  1. 3
      src/stratifier.c

3
src/stratifier.c

@ -936,8 +936,11 @@ static void drop_allclients(ckpool_t *ckp)
ck_wlock(&sdata->instance_lock);
HASH_ITER(hh, sdata->stratum_instances, client, tmp) {
if (!client->ref) {
HASH_DEL(sdata->stratum_instances, client);
__kill_instance(client);
} else
client->dropped = true;
kills++;
sprintf(buf, "dropclient=%"PRId64, client->id);
send_proc(ckp->connector, buf);

Loading…
Cancel
Save