From 2ff9d7f0f6acf57f41c43ff653357fb765641da0 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 23 Feb 2015 16:25:10 +1100 Subject: [PATCH] Drop clients bound to a subproxy even if the proxy no longer exists in dead_proxy --- src/stratifier.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index 570feec0..aa543ef5 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -2196,8 +2196,6 @@ static void dead_proxy(sdata_t *sdata, const char *buf) proxy->dead = true; LOGNOTICE("Stratifier dropping clients from proxy %d:%d", id, subid); headroom = current_headroom(sdata, &proxy); - if (!proxy) - return; ck_rlock(&sdata->instance_lock); HASH_ITER(hh, sdata->stratum_instances, client, tmp) {