Commit acb15bfcfdda18ad1e3e17b78b97c086bfed075a

Elso Andras 2014-04-25T22:21:44

Fix idle bug, when redirected client can't auth

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/util.c b/util.c
index 65692f2..a710204 100644
--- a/util.c
+++ b/util.c
@@ -2025,6 +2025,8 @@ bool auth_stratum(struct pool *pool)
 		applog(LOG_INFO, "pool %d JSON stratum auth failed: %s", pool->pool_no, ss);
 		free(ss);
 
+		suspend_stratum(pool);
+
 		goto out;
 	}