diff options
-rw-r--r-- | gusb/gusb-context.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gusb/gusb-context.c b/gusb/gusb-context.c index eb85e8a..6e8d82f 100644 --- a/gusb/gusb-context.c +++ b/gusb/gusb-context.c @@ -579,10 +579,8 @@ g_usb_context_hotplug_cb(struct libusb_context *ctx, g_assert(locker != NULL); /* libusb is returning devices but LIBUSB_HOTPLUG_ENUMERATE is not set! */ - if (!priv->done_enumerate) { - g_debug("ignoring device as no enumerate!!"); + if (!priv->done_enumerate) return 0; - } helper = g_new0(GUsbContextIdleHelper, 1); helper->self = g_object_ref(self); |