diff options
author | Richard Hughes <richard@hughsie.com> | 2014-11-20 11:15:34 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-11-20 11:15:34 +0000 |
commit | f821e3582b8cfd5b95ffc07e33a963b72833ef22 (patch) | |
tree | 96f6ac9201cbbcab63d46ce187ae30fff988a191 /gusb/gusb-device-list.c | |
parent | 632f4d3bc02a10f4d68bac25eaf55432082fce63 (diff) | |
download | gusb-f821e3582b8cfd5b95ffc07e33a963b72833ef22.tar.gz |
trivial: Only poll once per second for non-hotplug platforms
Diffstat (limited to 'gusb/gusb-device-list.c')
-rw-r--r-- | gusb/gusb-device-list.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gusb/gusb-device-list.c b/gusb/gusb-device-list.c index 544d92d..c47a9a7 100644 --- a/gusb/gusb-device-list.c +++ b/gusb/gusb-device-list.c @@ -401,9 +401,9 @@ g_usb_device_list_coldplug (GUsbDeviceList *list) /* fall back to polling for platforms without hotplug capability */ if (!libusb_has_capability (LIBUSB_CAP_HAS_HOTPLUG)) { g_usb_device_list_rescan (list); - priv->hotplug_poll_id = g_timeout_add (500, - g_usb_device_list_rescan_cb, - list); + priv->hotplug_poll_id = g_timeout_add_seconds (1, + g_usb_device_list_rescan_cb, + list); g_warning ("Platform does not have hotplug cap, using polling"); priv->done_coldplug = TRUE; return; |