Merge "adb: Fix return value in error case"

am: 2925a580e9

Change-Id: I6fa794d11212e77650f6ffcfd7ee2e80092a9e0a
This commit is contained in:
Greg Kaiser 2019-03-18 14:01:02 -07:00 committed by android-build-merger
commit 73308830a6

View file

@ -259,7 +259,7 @@ static bool __adb_check_server_version(std::string* error) {
if (fd >= 0) {
std::string version_string;
if (!ReadProtocolString(fd, &version_string, error)) {
return -1;
return false;
}
ReadOrderlyShutdown(fd);