Fix descruction call propagation.
Bug: b/33779707
Test: VTS
Change-Id: I617f8bf7a49275417e5ad6746d83ee3fb5dbd55d
diff --git a/BpHwBinder.cpp b/BpHwBinder.cpp
index 6a752f8..ed7ed2a 100644
--- a/BpHwBinder.cpp
+++ b/BpHwBinder.cpp
@@ -292,7 +292,10 @@
printRefs();
}
IPCThreadState* ipc = IPCThreadState::self();
- if (ipc) ipc->decStrongHandle(mHandle);
+ if (ipc) {
+ ipc->decStrongHandle(mHandle);
+ ipc->flushCommands();
+ }
}
bool BpHwBinder::onIncStrongAttempted(uint32_t /*flags*/, const void* /*id*/)