Merge "adb: Fix return value in error case" am: 2925a580e9
am: 73308830a6
Change-Id: I7cf13d7e4f5850b99fdd843fbd09e349cfea8bee
This commit is contained in:
commit
507be15cf8
1 changed files with 1 additions and 1 deletions
|
|
@ -259,7 +259,7 @@ static bool __adb_check_server_version(std::string* error) {
|
||||||
if (fd >= 0) {
|
if (fd >= 0) {
|
||||||
std::string version_string;
|
std::string version_string;
|
||||||
if (!ReadProtocolString(fd, &version_string, error)) {
|
if (!ReadProtocolString(fd, &version_string, error)) {
|
||||||
return -1;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
ReadOrderlyShutdown(fd);
|
ReadOrderlyShutdown(fd);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue