From 25588767f2244b999b31f5e00365509d836fdaf2 Mon Sep 17 00:00:00 2001 From: Antoine van Gelder Date: Tue, 2 Aug 2016 15:32:37 +0200 Subject: [PATCH] Fixed: ios-deploy will exit when the detection timeout ends even if the device has been detected --- src/ios-deploy/ios-deploy.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ios-deploy/ios-deploy.m b/src/ios-deploy/ios-deploy.m index 72723b4..b5587cf 100644 --- a/src/ios-deploy/ios-deploy.m +++ b/src/ios-deploy/ios-deploy.m @@ -1708,7 +1708,9 @@ void device_callback(struct am_device_notification_callback_info *info, void *ar } void timeout_callback(CFRunLoopTimerRef timer, void *info) { - if ((!found_device) && (!detect_only)) { + if (found_device && (!detect_only)) { + return; + } else if ((!found_device) && (!detect_only)) { if(best_device_match != NULL) { NSLogVerbose(@"Handling best device match."); handle_device(best_device_match);