Browse Source

Deauthorise clients when disconnecting them

master
Con Kolivas 10 years ago
parent
commit
81b20d1376
  1. 4
      src/stratifier.c

4
src/stratifier.c

@ -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);

Loading…
Cancel
Save