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

Commit 39ba54ee authored by Spencer Low's avatar Spencer Low Committed by android-build-merger
Browse files

Merge "adb: really make kill-server wait for server death"

am: 91a25771

Change-Id: Ided9ccc50afa75c7137ec552cedc34f59e1f318e
parents d92cb4c5 91a25771
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -185,6 +185,11 @@ bool adb_kill_server() {
        return false;
    }

    // The server might send OKAY, so consume that.
    char buf[4];
    ReadFdExactly(fd, buf, 4);
    // Now that no more data is expected, wait for socket orderly shutdown or error, indicating
    // server death.
    ReadOrderlyShutdown(fd);
    return true;
}