mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 13:04:29 +00:00
Check for zero timeout on _usb_write.
This commit is contained in:
parent
2887147444
commit
8ecf929944
@ -2288,6 +2288,8 @@ int _usb_write(struct cgpu_info *cgpu, int ep, char *buf, size_t bufsiz, int *pr
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
timeout = initial_timeout - (done * 1000);
|
timeout = initial_timeout - (done * 1000);
|
||||||
|
if (!timeout)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
*processed = tot;
|
*processed = tot;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user