diff options
Diffstat (limited to 'libusbmuxd')
-rw-r--r-- | libusbmuxd/libusbmuxd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libusbmuxd/libusbmuxd.c b/libusbmuxd/libusbmuxd.c index 5735a72..304e8da 100644 --- a/libusbmuxd/libusbmuxd.c +++ b/libusbmuxd/libusbmuxd.c @@ -405,7 +405,11 @@ static int usbmuxd_listen_inotify() { int inot_fd; int watch_fd; - int sfd;; + int sfd; + + sfd = connect_usbmuxd_socket(); + if (sfd >= 0) + return sfd; sfd = -1; inot_fd = inotify_init (); |