From 23a8c60420c01b452394d7aaa2638b61d513adaa Mon Sep 17 00:00:00 2001 From: ckolivas Date: Tue, 31 Jul 2012 10:28:48 +1000 Subject: [PATCH] Revert "bitforce: Skip out of sending work if work restart requested" This reverts commit cf36331d815e7b87131d547b92b9ceaa218d114d. --- driver-bitforce.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/driver-bitforce.c b/driver-bitforce.c index 6b76288e..123c5fc4 100644 --- a/driver-bitforce.c +++ b/driver-bitforce.c @@ -287,8 +287,7 @@ re_send: BFgets(pdevbuf, sizeof(pdevbuf), fdDev); if (!pdevbuf[0] || !strncasecmp(pdevbuf, "B", 1)) { mutex_unlock(&bitforce->device_mutex); - if (!restart_wait(WORK_CHECK_INTERVAL_MS)) - return false; + nmsleep(WORK_CHECK_INTERVAL_MS); goto re_send; } else if (unlikely(strncasecmp(pdevbuf, "OK", 2))) { mutex_unlock(&bitforce->device_mutex);