Browse Source

restart_wait should return 0 if thr_restart is true.

nfactor-troky
Con Kolivas 11 years ago
parent
commit
9040cac924
  1. 2
      cgminer.c

2
cgminer.c

@ -3844,7 +3844,7 @@ int restart_wait(struct thr_info *thr, unsigned int mstime) @@ -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);

Loading…
Cancel
Save