diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/idevicecrashreport.c | 2 |
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[]) { | |||
| 411 | while ((strncmp(ping, "ping", 4) != 0) && (attempts < 10)) { | 411 | while ((strncmp(ping, "ping", 4) != 0) && (attempts < 10)) { |
| 412 | uint32_t bytes = 0; | 412 | uint32_t bytes = 0; |
| 413 | device_error = idevice_connection_receive_timeout(connection, ping, 4, &bytes, 2000); | 413 | device_error = idevice_connection_receive_timeout(connection, ping, 4, &bytes, 2000); |
| 414 | if ((bytes == 0) && (device_error == IDEVICE_E_SUCCESS)) { | 414 | if (device_error != IDEVICE_E_SUCCESS) { |
| 415 | attempts++; | 415 | attempts++; |
| 416 | continue; | 416 | continue; |
| 417 | } else if (device_error < 0) { | 417 | } else if (device_error < 0) { |
