mirror of
https://github.com/GOSTSec/sgminer
synced 2025-08-26 22:02:09 +00:00
Revert "bitforce: Skip out of sending work if work restart requested"
This reverts commit cf36331d815e7b87131d547b92b9ceaa218d114d.
This commit is contained in:
parent
fdb67e8b99
commit
23a8c60420
@ -287,8 +287,7 @@ re_send:
|
|||||||
BFgets(pdevbuf, sizeof(pdevbuf), fdDev);
|
BFgets(pdevbuf, sizeof(pdevbuf), fdDev);
|
||||||
if (!pdevbuf[0] || !strncasecmp(pdevbuf, "B", 1)) {
|
if (!pdevbuf[0] || !strncasecmp(pdevbuf, "B", 1)) {
|
||||||
mutex_unlock(&bitforce->device_mutex);
|
mutex_unlock(&bitforce->device_mutex);
|
||||||
if (!restart_wait(WORK_CHECK_INTERVAL_MS))
|
nmsleep(WORK_CHECK_INTERVAL_MS);
|
||||||
return false;
|
|
||||||
goto re_send;
|
goto re_send;
|
||||||
} else if (unlikely(strncasecmp(pdevbuf, "OK", 2))) {
|
} else if (unlikely(strncasecmp(pdevbuf, "OK", 2))) {
|
||||||
mutex_unlock(&bitforce->device_mutex);
|
mutex_unlock(&bitforce->device_mutex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user