am e1101677: Merge "adb: fix killing of old version of adb process"
* commit 'e1101677eabaaddc2a60c6456cce1fd5e38f5b4e': adb: fix killing of old version of adb process
This commit is contained in:
commit
c1b6378d96
1 changed files with 3 additions and 2 deletions
|
|
@ -229,8 +229,9 @@ int adb_connect(const std::string& service, std::string* error) {
|
|||
}
|
||||
} else {
|
||||
// if fd is -1, then check for "unknown host service",
|
||||
// which would indicate a version of adb that does not support the version command
|
||||
if (*error == "unknown host service") {
|
||||
// which would indicate a version of adb that does not support the
|
||||
// version command, in which case we should fall-through to kill it.
|
||||
if (*error != "unknown host service") {
|
||||
return fd;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue