summaryrefslogtreecommitdiff
path: root/libs/binder/RpcState.cpp
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2023-02-01 02:25:52 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-02-01 02:25:52 +0000
commite378a9e35bdfd929b75e0ccca303a544f03c424c (patch)
tree036bac86f5c115822df78783c8048688357ad1e9 /libs/binder/RpcState.cpp
parent9e3c5380df3436b8dd8b3500083ebab03f16df49 (diff)
parent6aae53692e0a81ae263e25927214e79808cfdb38 (diff)
Merge "libbinder: Flush excess refs after single async transaction"
Diffstat (limited to 'libs/binder/RpcState.cpp')
-rw-r--r--libs/binder/RpcState.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/binder/RpcState.cpp b/libs/binder/RpcState.cpp
index b27f1028d4..1ea13f9a1c 100644
--- a/libs/binder/RpcState.cpp
+++ b/libs/binder/RpcState.cpp
@@ -1036,8 +1036,8 @@ processTransactInternalTailCall:
return DEAD_OBJECT;
}
- if (it->second.asyncTodo.size() == 0) return OK;
- if (it->second.asyncTodo.top().asyncNumber == it->second.asyncNumber) {
+ if (it->second.asyncTodo.size() != 0 &&
+ it->second.asyncTodo.top().asyncNumber == it->second.asyncNumber) {
LOG_RPC_DETAIL("Found next async transaction %" PRIu64 " on %" PRIu64,
it->second.asyncNumber, addr);