Browse Source

Bugfix: Only log stratum resume if it was actually "idle" before

Luke Dashjr 13 years ago
parent
commit
3fcc345888
1 changed files with 2 additions and 1 deletions
  1. 2 1
      cgminer.c

+ 2 - 1
cgminer.c

@@ -4627,8 +4627,9 @@ static void stratum_resumed(struct pool *pool)
 {
 	if (!pool->stratum_notify)
 		return;
+	if (!pool_tclear(pool, &pool->idle))
+		return;
 	applog(LOG_INFO, "Stratum connection to pool %d resumed", pool->pool_no);
-	pool_tclear(pool, &pool->idle);
 	pool_resus(pool);
 }