Skip to content

Commit

Permalink
preflight: don't wait for trust if device is at setup screen
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias authored and olunx committed Apr 4, 2014
1 parent 7ec4491 commit f078c3d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/preflight.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,12 @@ static void* preflight_worker_handle_device_add(void* userdata)

/* if not paired, trigger the trust dialog to make sure it appears */
if (!is_device_paired) {
lockdownd_pair(lockdown, NULL);
if (lockdownd_pair(lockdown, NULL) == LOCKDOWN_E_SUCCESS) {
/* if device is still showing the setup screen it will pair even without trust dialog */
usbmuxd_log(LL_INFO, "%s: Pair success for device %s", __func__, _dev->udid);
client_device_add(info);
goto leave;
}
}

lockdownd_service_descriptor_t service = NULL;
Expand Down

0 comments on commit f078c3d

Please sign in to comment.