Browse Source

Check we are not lagging as well as there is enough work in getwork.

Con Kolivas 13 years ago
parent
commit
8e20456bc0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cgminer.c

+ 1 - 1
cgminer.c

@@ -2320,7 +2320,7 @@ static void *get_work_thread(void *userdata)
 
 
 	applog(LOG_DEBUG, "Creating extra get work thread");
 	applog(LOG_DEBUG, "Creating extra get work thread");
 
 
-	if (enough_work())
+	if (!wc->lagging && enough_work())
 		goto out;
 		goto out;
 
 
 	ret_work = make_work();
 	ret_work = make_work();