diff options
author | DanyL | 2019-06-13 02:01:04 +0300 |
---|---|---|
committer | Nikias Bassen | 2019-06-13 01:41:20 +0200 |
commit | 4d8b89223cbc9f530cc650ab5131c09eab1af258 (patch) | |
tree | e63216393208c07ae83c7b8eba5e0a9546de4fef /tools | |
parent | 6edc36fccb52a963c9ebfbb44ba7b91570e0fd06 (diff) | |
download | libimobiledevice-4d8b89223cbc9f530cc650ab5131c09eab1af258.tar.gz libimobiledevice-4d8b89223cbc9f530cc650ab5131c09eab1af258.tar.bz2 |
Timeout support for SSL connections and better timeout handeling.
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[]) { 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) { |