Commit 9040cac924519ca7cc1bdc21279793bc6da52c4d

Con Kolivas 2013-09-25T22:47:19

restart_wait should return 0 if thr_restart is true.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index 08a9abd..43bc003 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -3844,7 +3844,7 @@ int restart_wait(struct thr_info *thr, unsigned int mstime)
 
 	mutex_lock(&restart_lock);
 	if (thr->work_restart)
-		rc = ETIMEDOUT;
+		rc = 0;
 	else
 		rc = pthread_cond_timedwait(&restart_cond, &restart_lock, &abstime);
 	mutex_unlock(&restart_lock);