Fixes #182 - ios-deploy terminates with code 11 in difficult to pinpoint circumstances

This commit is contained in:
Shazron Abdullah 2015-10-08 16:06:01 -07:00
parent 612c3561fd
commit 0320381c67
2 changed files with 0 additions and 4 deletions

View File

@ -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.
*

View File

@ -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) {