Commit c7c21e6c37f51edcd7bda01d7ae5f9ec4c1c2c07

Con Kolivas 2013-03-07T16:56:03

Revert "Clear the pool idle flag only on the pool chosen at startup, allowing it to be cleared by the watchpool thread for the other pools." This reverts commit 370e8fc8626fd370fedbea53f433cf89c8195a59.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/cgminer.c b/cgminer.c
index 00ee5ad..1490183 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -6930,10 +6930,10 @@ static void *test_pool_thread(void *arg)
 
 	if (pool_active(pool, false)) {
 		pool_tset(pool, &pool->lagging);
+		pool_tclear(pool, &pool->idle);
 		applog(LOG_INFO, "Pool %d %s active", pool->pool_no, pool->rpc_url);
 		mutex_lock(&control_lock);
 		if (!pools_active) {
-			pool_tclear(pool, &pool->idle);
 			currentpool = pool;
 			if (pool->pool_no != 0)
 				applog(LOG_NOTICE, "Switching to pool %d %s - first alive pool", pool->pool_no, pool->rpc_url);