diff options
author | 2025-06-14 02:55:36 +0200 | |
---|---|---|
committer | 2025-06-14 02:55:36 +0200 | |
commit | 8d048f454e623957dc42379565bb1ae247b3093f (patch) | |
tree | 53e48907749271af3dd4c76c5f9e8a91604a9607 /src | |
parent | 3aac510d1546d7a6091b0d4a2522dc16fcd903a4 (diff) | |
download | libimobiledevice-8d048f454e623957dc42379565bb1ae247b3093f.tar.gz libimobiledevice-8d048f454e623957dc42379565bb1ae247b3093f.tar.bz2 |
ostrace: Use smaller timeout in receive loop
Diffstat (limited to 'src')
-rw-r--r-- | src/ostrace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ostrace.c b/src/ostrace.c index 240d2fd..68eb6bf 100644 --- a/src/ostrace.c +++ b/src/ostrace.c | |||
@@ -214,9 +214,8 @@ void *ostrace_worker(void *arg) | |||
214 | debug_info("Running"); | 214 | debug_info("Running"); |
215 | 215 | ||
216 | while (oswt->client->parent) { | 216 | while (oswt->client->parent) { |
217 | res = ostrace_error(service_receive(oswt->client->parent, (char*)&msgtype, 1, &received)); | 217 | res = ostrace_error(service_receive_with_timeout(oswt->client->parent, (char*)&msgtype, 1, &received, 100)); |
218 | if (res == OSTRACE_E_TIMEOUT) { | 218 | if (res == OSTRACE_E_TIMEOUT) { |
219 | debug_info("Nothing received, retrying\n"); | ||
220 | continue; | 219 | continue; |
221 | } | 220 | } |
222 | if (res != OSTRACE_E_SUCCESS) { | 221 | if (res != OSTRACE_E_SUCCESS) { |