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