1
0
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:
Con Kolivas 2013-10-25 12:46:47 +11:00
parent 0da551fac1
commit 4c979d756f

View File

@ -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;
}