Fixed: ios-deploy will exit when the detection timeout ends even if the device has been detected
This commit is contained in:
parent
babe79f391
commit
25588767f2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user