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

bitforce: Skip out of sending work if work restart requested

This commit is contained in:
Luke Dashjr 2012-07-29 06:26:23 +00:00
parent 13cf568961
commit cf36331d81

View File

@ -271,7 +271,8 @@ re_send:
BFgets(pdevbuf, sizeof(pdevbuf), fdDev);
if (!pdevbuf[0] || !strncasecmp(pdevbuf, "B", 1)) {
mutex_unlock(&bitforce->device_mutex);
nmsleep(WORK_CHECK_INTERVAL_MS);
if (!restart_wait(WORK_CHECK_INTERVAL_MS))
return false;
goto re_send;
} else if (unlikely(strncasecmp(pdevbuf, "OK", 2))) {
mutex_unlock(&bitforce->device_mutex);