1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-13 06:01:03 +00:00

restart_wait should return 0 if thr_restart is true.

This commit is contained in:
Con Kolivas 2013-09-25 22:47:19 +10:00
parent 7a9669ec3c
commit 9040cac924

View File

@ -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);