1
0
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:
Paul Sheppard 2012-07-04 18:46:41 -07:00
parent c4870676c4
commit 54f8554af4

View File

@ -143,6 +143,9 @@ static void biforce_clear_buffer(struct cgpu_info *bitforce)
int fdDev = bitforce->device_fd;
char pdevbuf[0x100];
if (!fdDev)
return;
applog(LOG_DEBUG, "BFL%i: Clearing read buffer", bitforce->device_id);
mutex_lock(&bitforce->device_mutex);