commit | 8878fb5e5e2b65fe1e9a2bc536ab5e19917bb270 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Tue Aug 23 03:07:14 2022 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Aug 23 03:07:14 2022 +0000 |
tree | a4ae01def23562e235651e6369cd97988a971c8b | |
parent | 453334dab3fcb1b3f52ad754234503aa3b451154 [diff] | |
parent | 77ddf62ef1045e9f441af0cb971bf05fe62fe977 [diff] |
Merge "libbinder: clear RpcSession::mStartedSetup in case of error"
diff --git a/libs/binder/RpcSession.cpp b/libs/binder/RpcSession.cpp index d347262..8ddfa93 100644 --- a/libs/binder/RpcSession.cpp +++ b/libs/binder/RpcSession.cpp
@@ -484,6 +484,9 @@ mProtocolVersion = oldProtocolVersion; mConnections = {}; + + // clear mStartedSetup so that we can reuse this RpcSession + mStartedSetup = false; }); if (status_t status = connectAndInit({}, false /*incoming*/); status != OK) return status;