Commit 919a836f14eb7dfa9d8c6cc6a99fffba01cdadd6

Con Kolivas 2013-08-21T20:29:46

Return positive for cnx_needed when no_work is true.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/cgminer.c b/cgminer.c
index 987f858..0a2982e 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4999,6 +4999,9 @@ static bool cnx_needed(struct pool *pool)
 		return true;
 	if (pool_unworkable(cp))
 		return true;
+	/* We've run out of work, bring anything back to life. */
+	if (no_work)
+		return true;
 	return false;
 }