Commit 0810212c9a7bdc88caeac296c075961fabe9753c

Con Kolivas 2013-03-07T14:20:33

Reset stratum_notify flag on suspend_stratum as well.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/util.c b/util.c
index e1cd2b7..e24cce1 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);
 }