summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-11-14 02:33:26 +0100
committerGravatar Martin Szulecki2013-11-14 02:33:26 +0100
commitf88267edef5ff6fea7863ded77ff32409dc0b924 (patch)
tree3402704dafb116d273e1acc791b1fbfbcfeb6ab2 /src
parent4cfb8291bc1523867cb930e1103c54396a72c7e4 (diff)
downloadideviceinstaller-f88267edef5ff6fea7863ded77ff32409dc0b924.tar.gz
ideviceinstaller-f88267edef5ff6fea7863ded77ff32409dc0b924.tar.bz2
Remove wait timeouts as they appear unreliable on operations with large apps
Diffstat (limited to 'src')
-rw-r--r--src/ideviceinstaller.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index ec4f767..1fc79bb 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -244,7 +244,6 @@ static void idevice_event_callback(const idevice_event_t* event, void* userdata)
static void idevice_wait_for_operation_to_complete()
{
- int i = 0;
struct timespec ts;
ts.tv_sec = 0;
ts.tv_nsec = 500000000;
@@ -255,15 +254,13 @@ static void idevice_wait_for_operation_to_complete()
/* wait for operation to complete */
while (wait_for_op_complete && !op_completed && !err_occured
- && !notified && (i < 60) && is_device_connected) {
+ && !notified && is_device_connected) {
nanosleep(&ts, NULL);
- i++;
}
/* wait some time if a notification is expected */
- while (notification_expected && !notified && !err_occured && (i < 10) && is_device_connected) {
+ while (notification_expected && !notified && !err_occured && is_device_connected) {
nanosleep(&ts, NULL);
- i++;
}
idevice_event_unsubscribe();