summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2021-02-01 11:44:34 +0100
committerGravatar Nikias Bassen2021-02-01 11:44:34 +0100
commitf6eb49bdd0997b834d215cc01029454ed5d2f3d1 (patch)
treee8470b7ff86b5e3664eb20bdd20f114fac777b45 /src
parentde1d724d0b753f21267da41eb4802e4f844f1331 (diff)
downloadlibimobiledevice-f6eb49bdd0997b834d215cc01029454ed5d2f3d1.tar.gz
libimobiledevice-f6eb49bdd0997b834d215cc01029454ed5d2f3d1.tar.bz2
debugserver: Return success when a receive timed out but actualy bytes have been read
Diffstat (limited to 'src')
-rw-r--r--src/debugserver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debugserver.c b/src/debugserver.c
index cc0e73f..1774087 100644
--- a/src/debugserver.c
+++ b/src/debugserver.c
@@ -156,7 +156,7 @@ LIBIMOBILEDEVICE_API debugserver_error_t debugserver_client_receive_with_timeout
*received = (uint32_t)bytes;
}
- return res;
+ return (bytes > 0) ? DEBUGSERVER_E_SUCCESS : res;
}
LIBIMOBILEDEVICE_API debugserver_error_t debugserver_client_receive(debugserver_client_t client, char* data, uint32_t size, uint32_t *received)