diff options
author | 2022-10-24 15:46:21 +0000 | |
---|---|---|
committer | 2022-10-24 15:47:18 +0000 | |
commit | d0c9a17cbb72398266f5075e3de57245b31280be (patch) | |
tree | 490d2841aff1a225c84934ab0a89a2803cb1cb14 /libs/binder/RpcSession.cpp | |
parent | 9aef8207dec6e065b1198afcfc1ffd1b06ef9592 (diff) |
libbinder: rpc java detach error code
Bug: N/A
Change-Id: I074cefd859f1967a662bdda71f285a60a4bc3cad
Test: N/A
Diffstat (limited to 'libs/binder/RpcSession.cpp')
-rw-r--r-- | libs/binder/RpcSession.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/binder/RpcSession.cpp b/libs/binder/RpcSession.cpp index 7d6bcfc2a1..8bced35037 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); } } |