Browse Source

Deauthorise clients when disconnecting them

master
Con Kolivas 11 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) {
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);

Loading…
Cancel
Save