Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
device.hardware: adjust re-enumeration wait parameters for Windows.
Now that libusb will support hotplug events on Windows shortly (see libusb/libusb#1406), the hotplug wait path will get exercised. Currently it does not wait for long enough; it takes about 5.5 s on a representative Windows desktop machine used for testing. This commit raises re-enumeration timeout to 10.0 s, and ensure that the timeout is respected no matter how many hotplug events are received. The higher fixed timeout on older libusb on Windows isn't disruptive, and with the next libusb release will become irrelevant for most.
- Loading branch information