Browse Source

Do not consider every call to stratum_resumed a pool recovery unless it was actually idle.

Con Kolivas 13 years ago
parent
commit
3804850141
1 changed files with 4 additions and 3 deletions
  1. 4 3
      cgminer.c

+ 4 - 3
cgminer.c

@@ -4639,9 +4639,10 @@ static void stratum_resumed(struct pool *pool)
 {
 	if (!pool->stratum_notify)
 		return;
-	applog(LOG_INFO, "Stratum connection to pool %d resumed", pool->pool_no);
-	pool_tclear(pool, &pool->idle);
-	pool_resus(pool);
+	if (pool_tclear(pool, &pool->idle)) {
+		applog(LOG_INFO, "Stratum connection to pool %d resumed", pool->pool_no);
+		pool_resus(pool);
+	}
 }
 
 /* One stratum thread per pool that has stratum waits on the socket checking