From fc027e05377baae393d39cc30b8024ed7e8d45ea Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Mon, 25 Oct 2021 15:31:31 -0700 Subject: libbinder: RPC more nodiscard w/ fix Another forgotten error. Bug: 167966510 Test: binderRpcTest Change-Id: I48adcf428c8ce68fdc5b49d7a0314d043e78e76d --- libs/binder/RpcSession.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/binder/RpcSession.cpp') diff --git a/libs/binder/RpcSession.cpp b/libs/binder/RpcSession.cpp index 137411bc6b..53c9b78a7a 100644 --- a/libs/binder/RpcSession.cpp +++ b/libs/binder/RpcSession.cpp @@ -688,7 +688,8 @@ status_t RpcSession::addOutgoingConnection(std::unique_ptr rpcTran status_t status = OK; if (init) { - mRpcBinderState->sendConnectionInit(connection, sp::fromExisting(this)); + status = + mRpcBinderState->sendConnectionInit(connection, sp::fromExisting(this)); } { -- cgit v1.2.3-59-g8ed1b