Merge "adb: don't error in handle_host_request if we can't acquire a transport." into pi-dev

This commit is contained in:
Josh Gao 2018-04-19 22:32:27 +00:00 committed by Android (Google) Code Review
commit 51fd5440c1
1 changed files with 1 additions and 1 deletions

View File

@ -1222,7 +1222,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);