1
0
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:
Con Kolivas 2013-06-04 00:08:59 +10:00
parent 2887147444
commit 8ecf929944

View File

@ -2288,6 +2288,8 @@ int _usb_write(struct cgpu_info *cgpu, int ep, char *buf, size_t bufsiz, int *pr
break;
timeout = initial_timeout - (done * 1000);
if (!timeout)
break;
}
*processed = tot;