From 81b20d1376a8f17be01eb763d323a904628fe951 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 1 Aug 2014 09:46:32 +1000 Subject: [PATCH] Deauthorise clients when disconnecting them --- src/stratifier.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);