Browse Source

Bugfix: minerloop_async: Check the correct _mt_disable_called flag

Luke Dashjr 12 years ago
parent
commit
13a2bde5b9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      deviceapi.c

+ 2 - 2
deviceapi.c

@@ -466,7 +466,7 @@ void minerloop_async(struct thr_info *mythr)
 			}
 			else  // ! should_be_running
 			{
-				if (unlikely((is_running || !thr->_mt_disable_called) && !mythr->_job_transition_in_progress))
+				if (unlikely((is_running || !mythr->_mt_disable_called) && !mythr->_job_transition_in_progress))
 				{
 disabled: ;
 					timer_unset(&mythr->tv_morework);
@@ -478,7 +478,7 @@ disabled: ;
 							// Avoid starting job when pending result fetch completes
 							mythr->_proceed_with_new_job = false;
 					}
-					else  // !thr->_mt_disable_called
+					else  // !mythr->_mt_disable_called
 						mt_disable_start(mythr);
 				}
 			}