summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/idevicecrashreport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/idevicecrashreport.c b/tools/idevicecrashreport.c
index e05d506..6918d6b 100644
--- a/tools/idevicecrashreport.c
+++ b/tools/idevicecrashreport.c
@@ -411,7 +411,7 @@ int main(int argc, char* argv[]) {
while ((strncmp(ping, "ping", 4) != 0) && (attempts < 10)) {
uint32_t bytes = 0;
device_error = idevice_connection_receive_timeout(connection, ping, 4, &bytes, 2000);
- if ((bytes == 0) && (device_error == IDEVICE_E_SUCCESS)) {
+ if (device_error != IDEVICE_E_SUCCESS) {
attempts++;
continue;
} else if (device_error < 0) {