summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)