libusb: increase timer before processing hotplug event

This commit is contained in:
Sanjay Govind 2025-01-24 08:40:13 +13:00
parent 486b5c2abb
commit ad616a5cdd

View file

@ -1033,7 +1033,7 @@ void handle_hotplug_event(bool connected)
{
if (auto usbh = g_fxo->try_get<named_thread<usb_handler_thread>>())
{
usbh->usb_hotplug_timeout = get_system_time() + (connected ? 500'000ull : 0);
usbh->usb_hotplug_timeout = get_system_time() + (connected ? 1'000'000ull : 0);
}
}