diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c index db529bb..0928bcd 100644 --- a/src/service.c +++ b/src/service.c @@ -94,7 +94,7 @@ LIBIMOBILEDEVICE_API service_error_t service_client_factory_start_service(idevic lockdownd_error_t lerr = lockdownd_start_service(lckd, service_name, &service); lockdownd_client_free(lckd); - if (!service || service->port == 0) { + if (lerr != LOCKDOWN_E_SUCCESS) { debug_info("Could not start service %s: %s", service_name, lockdownd_strerror(lerr)); return SERVICE_E_START_SERVICE_ERROR; } |