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

Commit 78f133d7 authored by Josh Gao's avatar Josh Gao
Browse files

adb: don't error in handle_host_request if we can't acquire a transport.

Host services are attempted after handle_host_request, which means that
failing to find a transport to give to handle_forward_request shouldn't
send an error over to the other end.

Bug: http://b/78294734
Test: `adb track-devices` with multiple devices connected
Change-Id: I46c89cc1894b51d48fea7d4e629b1d57f73e3fd6
parent 22dc27b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1221,7 +1221,7 @@ int handle_host_request(const char* service, TransportType type, const char* ser
    std::string error;
    atransport* t = acquire_one_transport(type, serial, transport_id, nullptr, &error);
    if (!t) {
        return SendFail(reply_fd, error);
        return -1;
    }

    int ret = handle_forward_request(service, t, reply_fd);