Commit 9ccc418a6ceda3ea64042928c5b19878f30ee947

Con Kolivas 2012-10-22T23:12:06

Switch queued count when choosing a different pool from a failed stratum pool in getwork thread.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index b5f5e81..dfe449c 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -2684,6 +2684,8 @@ retry:
 			sleep(5);
 			if (altpool != pool) {
 				wc->pool = altpool;
+				inc_queued(altpool);
+				dec_queued(pool);
 				goto retry;
 			}
 		}