Skip to content

Commit

Permalink
debugserver: Return success when a receive timed out but actualy byte…
Browse files Browse the repository at this point in the history
…s have been read
  • Loading branch information
nikias committed Feb 1, 2021
1 parent de1d724 commit f6eb49b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debugserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f6eb49b

Please sign in to comment.