From 0320381c673201fbabd3557ab7b1a91d0b61ffcd Mon Sep 17 00:00:00 2001 From: Shazron Abdullah Date: Thu, 8 Oct 2015 16:06:01 -0700 Subject: [PATCH] Fixes #182 - ios-deploy terminates with code 11 in difficult to pinpoint circumstances --- src/MobileDevice.h | 3 --- src/ios-deploy.c | 1 - 2 files changed, 4 deletions(-) diff --git a/src/MobileDevice.h b/src/MobileDevice.h index 8c9ff91..1862bc1 100644 --- a/src/MobileDevice.h +++ b/src/MobileDevice.h @@ -196,9 +196,6 @@ mach_error_t AMDeviceNotificationSubscribe(am_device_notification_callback dn_unknown3, struct am_device_notification **notification); -mach_error_t AMDeviceNotificationUnsubscribe(am_device_notification subscription); - - /* Connects to the iPhone. Pass in the am_device structure that the * notification callback will give to you. * diff --git a/src/ios-deploy.c b/src/ios-deploy.c index 3f76daa..c1b10dc 100644 --- a/src/ios-deploy.c +++ b/src/ios-deploy.c @@ -1720,7 +1720,6 @@ void device_callback(struct am_device_notification_callback_info *info, void *ar switch (info->msg) { case ADNCI_MSG_CONNECTED: if(device_id != NULL || !debug || AMDeviceGetInterfaceType(info->dev) != 2) { - AMDeviceNotificationUnsubscribe(*notify); NSLogVerbose(@"Handling device type: %d", AMDeviceGetInterfaceType(info->dev)); handle_device(info->dev); } else if(best_device_match == NULL) {