Browse Source

Return positive for cnx_needed when no_work is true.

Con Kolivas 12 years ago
parent
commit
919a836f14
1 changed files with 3 additions and 0 deletions
  1. 3 0
      cgminer.c

+ 3 - 0
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;
 }