summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libusbhost/usbhost.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libusbhost/usbhost.c b/libusbhost/usbhost.c
index f5ec140..06d91f5 100644
--- a/libusbhost/usbhost.c
+++ b/libusbhost/usbhost.c
@@ -162,6 +162,8 @@ void usb_host_run(struct usb_host_context *context,
wds[0] = inotify_add_watch(context->fd, USB_FS_DIR, IN_CREATE | IN_DELETE);
if (wds[0] < 0) {
fprintf(stderr, "inotify_add_watch failed\n");
+ if (discovery_done_cb)
+ discovery_done_cb(client_data);
return;
}