1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

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

This commit is contained in:
Con Kolivas 2012-08-14 09:13:59 +10:00
parent 00691ababf
commit 8e20456bc0

View File

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