From 95e1ed04bb2bd3f7c8c57d282c1ce8e515c88147 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 27 Feb 2016 09:06:20 +1100 Subject: [PATCH] Stratifier loop should never return --- src/stratifier.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index a319997d..95567f70 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -7613,16 +7613,8 @@ void *stratifier(void *arg) stratum_loop(ckp, pi); out: - if (ckp->proxy) { - proxy_t *proxy, *tmpproxy; - - mutex_lock(&sdata->proxy_lock); - HASH_ITER(hh, sdata->proxies, proxy, tmpproxy) { - HASH_DEL(sdata->proxies, proxy); - dealloc(proxy); - } - mutex_unlock(&sdata->proxy_lock); - } - dealloc(ckp->sdata); + /* We should never get here unless there's a fatal error */ + LOGEMERG("Stratifier failure, shutting down"); + exit(1); return NULL; }