liblog: return 0 from android_logger_list_read() when recv() returns 0

We used to do this, but it got lost while refactoring this code.

Bug: 144311420
Test: we see "unexpected EOF!" instead of "unexpected length" from logcat
Change-Id: I7858d0a774a9eac63e5547ee67e85ef8fb0c682d
This commit is contained in:
Tom Cherry 2019-11-15 16:41:36 -08:00
parent bace5995f1
commit b8bacea818
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ static int android_transport_read(struct android_log_logger_list* logger_list,
struct log_msg* log_msg) {
int ret = (*transp->transport->read)(logger_list, transp, log_msg);
if (ret < 0) {
if (ret <= 0) {
return ret;
}