Skip to content

Commit

Permalink
Simplify comment with reasoning for not starting an AMDevice session …
Browse files Browse the repository at this point in the history
…for incremental installs.
  • Loading branch information
ivanhernandez13 committed Aug 19, 2020
1 parent faa5227 commit 54c0a6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ios-deploy/ios-deploy.m
Original file line number Diff line number Diff line change
Expand Up @@ -2056,8 +2056,7 @@ void handle_device(AMDeviceRef device) {
CFIndex size = sizeof(keys)/sizeof(CFStringRef);
options = CFDictionaryCreate(NULL, (const void **)&keys, (const void **)&values, size, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);

// Incremental installs do not seem to need a session to be started with AMDeviceStartSession() and can instead
// cause kAMDSendMessageError when the install takes too long and the session times out.
// Incremental installs should be done without a session started because of timeouts.
check_error(AMDeviceSecureInstallApplicationBundle(device, url, options, incremental_install_callback, 0));
CFRelease(extracted_bundle_id);
CFRelease(deltas_path);
Expand Down

0 comments on commit 54c0a6b

Please sign in to comment.