Browse Source

Wake the getwork scheduler after every restart threads.

Con Kolivas 13 years ago
parent
commit
5b03e7497d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      cgminer.c

+ 2 - 0
cgminer.c

@@ -3381,6 +3381,8 @@ static void restart_threads(void)
 	mutex_lock(&restart_lock);
 	mutex_lock(&restart_lock);
 	pthread_cond_broadcast(&restart_cond);
 	pthread_cond_broadcast(&restart_cond);
 	mutex_unlock(&restart_lock);
 	mutex_unlock(&restart_lock);
+
+	wake_gws();
 }
 }
 
 
 static void set_curblock(char *hexstr, unsigned char *hash)
 static void set_curblock(char *hexstr, unsigned char *hash)