Browse Source

Merge commit '3fcc345' into cg_merges_20121231

Luke Dashjr 13 years ago
parent
commit
3172e6b8d3
1 changed files with 2 additions and 1 deletions
  1. 2 1
      miner.c

+ 2 - 1
miner.c

@@ -5655,8 +5655,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);
 }