am f31d2ed1: Return false on socket read error
Merge commit 'f31d2ed1fd3a39a92bccc12eb66728594290ef3b' into gingerbread-plus-aosp * commit 'f31d2ed1fd3a39a92bccc12eb66728594290ef3b': Return false on socket read error
This commit is contained in:
commit
c3fa614928
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ bool FrameworkListener::onDataAvailable(SocketClient *c) {
|
|||
|
||||
if ((len = read(c->getSocket(), buffer, sizeof(buffer) -1)) < 0) {
|
||||
SLOGE("read() failed (%s)", strerror(errno));
|
||||
return errno;
|
||||
return false;
|
||||
} else if (!len)
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue