Fixes #182 - ios-deploy terminates with code 11 in difficult to pinpoint circumstances
This commit is contained in:
parent
612c3561fd
commit
0320381c67
@ -196,9 +196,6 @@ mach_error_t AMDeviceNotificationSubscribe(am_device_notification_callback
|
|||||||
dn_unknown3, struct am_device_notification **notification);
|
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
|
/* Connects to the iPhone. Pass in the am_device structure that the
|
||||||
* notification callback will give to you.
|
* notification callback will give to you.
|
||||||
*
|
*
|
||||||
|
@ -1720,7 +1720,6 @@ void device_callback(struct am_device_notification_callback_info *info, void *ar
|
|||||||
switch (info->msg) {
|
switch (info->msg) {
|
||||||
case ADNCI_MSG_CONNECTED:
|
case ADNCI_MSG_CONNECTED:
|
||||||
if(device_id != NULL || !debug || AMDeviceGetInterfaceType(info->dev) != 2) {
|
if(device_id != NULL || !debug || AMDeviceGetInterfaceType(info->dev) != 2) {
|
||||||
AMDeviceNotificationUnsubscribe(*notify);
|
|
||||||
NSLogVerbose(@"Handling device type: %d", AMDeviceGetInterfaceType(info->dev));
|
NSLogVerbose(@"Handling device type: %d", AMDeviceGetInterfaceType(info->dev));
|
||||||
handle_device(info->dev);
|
handle_device(info->dev);
|
||||||
} else if(best_device_match == NULL) {
|
} else if(best_device_match == NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user