Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1101677 authored by Elliott Hughes's avatar Elliott Hughes Committed by Gerrit Code Review
Browse files

Merge "adb: fix killing of old version of adb process"

parents db3492cf 71635bb9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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;
            }
        }