mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-04 19:14:26 +00:00
Do one extra guaranteed libusb event handling before testing if there are any pending async usb transfers.
This commit is contained in:
parent
0da551fac1
commit
4c979d756f
@ -7842,8 +7842,9 @@ static void *libusb_poll_thread(void __maybe_unused *arg)
|
||||
|
||||
/* Keep event handling going until there are no async transfers in
|
||||
* flight. */
|
||||
while (async_usb_transfers())
|
||||
do {
|
||||
libusb_handle_events_timeout_completed(NULL, &tv_end, NULL);
|
||||
} while (async_usb_transfers());
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user