Browse Source

Merge commit '3dd1658' into bfgminer

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

+ 2 - 0
miner.c

@@ -4859,6 +4859,8 @@ static void reap_curl(struct pool *pool)
 	gettimeofday(&now, NULL);
 	mutex_lock(&pool->pool_lock);
 	list_for_each_entry_safe(ent, iter, &pool->curlring, node) {
+		if (pool->curls < 2)
+			break;
 		if (now.tv_sec - ent->tv.tv_sec > 60) {
 			reaped++;
 			pool->curls--;