Commit 5b03e7497db5cc0cab7d2b788168c2d3f2b0fc87

Con Kolivas 2012-12-09T15:11:49

Wake the getwork scheduler after every restart threads.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index b075866..c7e913e 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -3381,6 +3381,8 @@ static void restart_threads(void)
 	mutex_lock(&restart_lock);
 	pthread_cond_broadcast(&restart_cond);
 	mutex_unlock(&restart_lock);
+
+	wake_gws();
 }
 
 static void set_curblock(char *hexstr, unsigned char *hash)