diff options
author | Nikias Bassen | 2021-02-01 11:44:34 +0100 |
---|---|---|
committer | Nikias Bassen | 2021-02-01 11:44:34 +0100 |
commit | f6eb49bdd0997b834d215cc01029454ed5d2f3d1 (patch) | |
tree | e8470b7ff86b5e3664eb20bdd20f114fac777b45 | |
parent | de1d724d0b753f21267da41eb4802e4f844f1331 (diff) | |
download | libimobiledevice-f6eb49bdd0997b834d215cc01029454ed5d2f3d1.tar.gz libimobiledevice-f6eb49bdd0997b834d215cc01029454ed5d2f3d1.tar.bz2 |
debugserver: Return success when a receive timed out but actualy bytes have been read
-rw-r--r-- | src/debugserver.c | 2 |
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) |