commit | c9c8318db6129edf9886a24dfaa5671c42072183 | [log] [tgz] |
---|---|---|
author | Tom Cherry <tomcherry@google.com> | Mon Nov 18 14:37:54 2019 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Nov 18 14:37:54 2019 +0000 |
tree | a0056b3764d9c7b164068b9dd83e22e7ef7d3261 | |
parent | dc4bd2714cf8a1ae4b606eafac56e12a0f77955e [diff] | |
parent | b8bacea8183447c2e2cb817e1ed18ce9d80349d7 [diff] |
Merge "liblog: return 0 from android_logger_list_read() when recv() returns 0"
diff --git a/liblog/logger_read.cpp b/liblog/logger_read.cpp index 5e10ada..71362bb 100644 --- a/liblog/logger_read.cpp +++ b/liblog/logger_read.cpp
@@ -262,7 +262,7 @@ struct log_msg* log_msg) { int ret = (*transp->transport->read)(logger_list, transp, log_msg); - if (ret < 0) { + if (ret <= 0) { return ret; }