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