mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 23:08:07 +00:00
Ad fd check to clear buffer.
This commit is contained in:
parent
c4870676c4
commit
54f8554af4
@ -143,6 +143,9 @@ static void biforce_clear_buffer(struct cgpu_info *bitforce)
|
|||||||
int fdDev = bitforce->device_fd;
|
int fdDev = bitforce->device_fd;
|
||||||
char pdevbuf[0x100];
|
char pdevbuf[0x100];
|
||||||
|
|
||||||
|
if (!fdDev)
|
||||||
|
return;
|
||||||
|
|
||||||
applog(LOG_DEBUG, "BFL%i: Clearing read buffer", bitforce->device_id);
|
applog(LOG_DEBUG, "BFL%i: Clearing read buffer", bitforce->device_id);
|
||||||
|
|
||||||
mutex_lock(&bitforce->device_mutex);
|
mutex_lock(&bitforce->device_mutex);
|
||||||
|
Loading…
Reference in New Issue
Block a user