diff --git a/src/stratifier.c b/src/stratifier.c index 62a50e2d..638726bb 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -900,8 +900,10 @@ static void drop_client(int id) if (client) { stratum_instance_t *old_client = NULL; - if (client->authorised) + if (client->authorised) { dec = true; + client->authorised = false; + } ck_ulock(&instance_lock); HASH_DEL(stratum_instances, client);