|
|
@ -900,8 +900,10 @@ static void drop_client(int id) |
|
|
|
if (client) { |
|
|
|
if (client) { |
|
|
|
stratum_instance_t *old_client = NULL; |
|
|
|
stratum_instance_t *old_client = NULL; |
|
|
|
|
|
|
|
|
|
|
|
if (client->authorised) |
|
|
|
if (client->authorised) { |
|
|
|
dec = true; |
|
|
|
dec = true; |
|
|
|
|
|
|
|
client->authorised = false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ck_ulock(&instance_lock); |
|
|
|
ck_ulock(&instance_lock); |
|
|
|
HASH_DEL(stratum_instances, client); |
|
|
|
HASH_DEL(stratum_instances, client); |
|
|
|