diff options
author | 2022-10-25 22:51:43 +0000 | |
---|---|---|
committer | 2022-10-25 22:51:43 +0000 | |
commit | 7f410d890f59f2fb5d35cf791cb5d5bd2554d199 (patch) | |
tree | aac8ae0f8598cb7aa1bee612e8841af8124a2fd2 /libs/binder/RpcSession.cpp | |
parent | b1815e3c3926b15d25880793973f448a2384caa8 (diff) | |
parent | d0c9a17cbb72398266f5075e3de57245b31280be (diff) |
Merge "libbinder: rpc java detach error code"
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 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); } } |