summaryrefslogtreecommitdiff
path: root/libs/binder/RpcSession.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2022-10-25 23:27:07 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2022-10-25 23:27:07 +0000
commited47da9f181eb42f7713adee4385ca8b1f0fc7c3 (patch)
treef16c7d4405636b600848daa210858d37693cb74c /libs/binder/RpcSession.cpp
parente7854e1f5dee7e2b870d93f11feafbece5cf666b (diff)
parent7f410d890f59f2fb5d35cf791cb5d5bd2554d199 (diff)
Merge "libbinder: rpc java detach error code" am: 7f410d890f
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2266571 Change-Id: I1b848be38b9bc4be6f5db51a8a875ff9cf386b27 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'libs/binder/RpcSession.cpp')
-rw-r--r--libs/binder/RpcSession.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/binder/RpcSession.cpp b/libs/binder/RpcSession.cpp
index 005917113b..ce6ef2becf 100644
--- a/libs/binder/RpcSession.cpp
+++ b/libs/binder/RpcSession.cpp
@@ -408,10 +408,11 @@ public:
"Unable to detach thread. No JavaVM, but it was present before!");
LOG_RPC_DETAIL("Detaching current thread from JVM");
- if (vm->DetachCurrentThread() != JNI_OK) {
+ int ret = vm->DetachCurrentThread();
+ if (ret == JNI_OK) {
mAttached = false;
} else {
- ALOGW("Unable to detach current thread from JVM");
+ ALOGW("Unable to detach current thread from JVM (%d)", ret);
}
}