Commit 7611499b111c10cf5ee83eeaf35cdb8918f3a03c

Con Kolivas 2012-08-05T14:57:46

Queue a request on pool switch in case we have no work from the new pool yet.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index 5187aa9..dd4b9a9 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -2572,6 +2572,8 @@ void switch_pools(struct pool *selected)
 	mutex_lock(&lp_lock);
 	pthread_cond_broadcast(&lp_cond);
 	mutex_unlock(&lp_lock);
+
+	queue_request(NULL, false);
 }
 
 static void discard_work(struct work *work)