Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed47da9f authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge "libbinder: rpc java detach error code" am: 7f410d89

parents e7854e1f 7f410d89
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -408,10 +408,11 @@ public:
                            "Unable to detach thread. No JavaVM, but it was present before!");
                            "Unable to detach thread. No JavaVM, but it was present before!");


        LOG_RPC_DETAIL("Detaching current thread from JVM");
        LOG_RPC_DETAIL("Detaching current thread from JVM");
        if (vm->DetachCurrentThread() != JNI_OK) {
        int ret = vm->DetachCurrentThread();
        if (ret == JNI_OK) {
            mAttached = false;
            mAttached = false;
        } else {
        } else {
            ALOGW("Unable to detach current thread from JVM");
            ALOGW("Unable to detach current thread from JVM (%d)", ret);
        }
        }
    }
    }