From 0810212c9a7bdc88caeac296c075961fabe9753c Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 7 Mar 2013 14:20:33 +1100 Subject: [PATCH] Reset stratum_notify flag on suspend_stratum as well. --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index e1cd2b77..e24cce10 100644 --- a/util.c +++ b/util.c @@ -1508,7 +1508,7 @@ void suspend_stratum(struct pool *pool) { applog(LOG_INFO, "Closing socket for stratum pool %d", pool->pool_no); mutex_lock(&pool->stratum_lock); - pool->stratum_active = false; + pool->stratum_active = pool->stratum_notify = false; mutex_unlock(&pool->stratum_lock); CLOSESOCKET(pool->sock); }