diff options
Diffstat (limited to 'libs/binder/RpcServer.cpp')
-rw-r--r-- | libs/binder/RpcServer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/binder/RpcServer.cpp b/libs/binder/RpcServer.cpp index eacd7bc661..d3ee6a6b8a 100644 --- a/libs/binder/RpcServer.cpp +++ b/libs/binder/RpcServer.cpp @@ -249,7 +249,7 @@ void RpcServer::establishConnection(sp<RpcServer>&& server, base::unique_fd clie statusToString(status).c_str()); // still need to cleanup before we can return } - bool reverse = header.options & RPC_CONNECTION_OPTION_REVERSE; + bool incoming = header.options & RPC_CONNECTION_OPTION_INCOMING; std::thread thisThread; sp<RpcSession> session; @@ -274,8 +274,8 @@ void RpcServer::establishConnection(sp<RpcServer>&& server, base::unique_fd clie RpcAddress sessionId = RpcAddress::fromRawEmbedded(&header.sessionId); if (sessionId.isZero()) { - if (reverse) { - ALOGE("Cannot create a new session with a reverse connection, would leak"); + if (incoming) { + ALOGE("Cannot create a new session with an incoming connection, would leak"); return; } @@ -313,7 +313,7 @@ void RpcServer::establishConnection(sp<RpcServer>&& server, base::unique_fd clie session = it->second; } - if (reverse) { + if (incoming) { LOG_ALWAYS_FATAL_IF(!session->addOutgoingConnection(std::move(clientFd), true), "server state must already be initialized"); return; |