diff options
| -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; |
