diff options
| author | 2013-09-24 20:25:37 +0200 | |
|---|---|---|
| committer | 2013-09-24 20:25:37 +0200 | |
| commit | 1c77c9545c1000e0b808b5181e40e7e9064fc75b (patch) | |
| tree | 8503145a8470f8b3dd08eec7f1051b653921315b | |
| parent | 4356659dfad264fb89bfcf0e4410797db4e908a8 (diff) | |
| download | usbmuxd-1c77c9545c1000e0b808b5181e40e7e9064fc75b.tar.gz usbmuxd-1c77c9545c1000e0b808b5181e40e7e9064fc75b.tar.bz2 | |
preflight: don't wait for trust if device is at setup screen
| -rw-r--r-- | src/preflight.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/preflight.c b/src/preflight.c index 97fdb8b..c40311c 100644 --- a/src/preflight.c +++ b/src/preflight.c | |||
| @@ -192,7 +192,12 @@ retry: | |||
| 192 | 192 | ||
| 193 | /* if not paired, trigger the trust dialog to make sure it appears */ | 193 | /* if not paired, trigger the trust dialog to make sure it appears */ |
| 194 | if (!is_device_paired) { | 194 | if (!is_device_paired) { |
| 195 | lockdownd_pair(lockdown, NULL); | 195 | if (lockdownd_pair(lockdown, NULL) == LOCKDOWN_E_SUCCESS) { |
| 196 | /* if device is still showing the setup screen it will pair even without trust dialog */ | ||
| 197 | usbmuxd_log(LL_INFO, "%s: Pair success for device %s", __func__, _dev->udid); | ||
| 198 | client_device_add(info); | ||
| 199 | goto leave; | ||
| 200 | } | ||
| 196 | } | 201 | } |
| 197 | 202 | ||
| 198 | lockdownd_service_descriptor_t service = NULL; | 203 | lockdownd_service_descriptor_t service = NULL; |
