summaryrefslogtreecommitdiffstats
path: root/libusbmuxd/libusbmuxd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libusbmuxd/libusbmuxd.c')
-rw-r--r--libusbmuxd/libusbmuxd.c6
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 ();