summaryrefslogtreecommitdiffstats
path: root/tools/idevicecrashreport.c
diff options
context:
space:
mode:
authorGravatar DanyL2019-06-13 02:01:04 +0300
committerGravatar Nikias Bassen2019-06-13 01:41:20 +0200
commit4d8b89223cbc9f530cc650ab5131c09eab1af258 (patch)
treee63216393208c07ae83c7b8eba5e0a9546de4fef /tools/idevicecrashreport.c
parent6edc36fccb52a963c9ebfbb44ba7b91570e0fd06 (diff)
downloadlibimobiledevice-4d8b89223cbc9f530cc650ab5131c09eab1af258.tar.gz
libimobiledevice-4d8b89223cbc9f530cc650ab5131c09eab1af258.tar.bz2
Timeout support for SSL connections and better timeout handeling.
Diffstat (limited to 'tools/idevicecrashreport.c')
-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[]) {
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) {