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

Commit 325a5721 authored by Mathieu Chartier's avatar Mathieu Chartier Committed by Android (Google) Code Review
Browse files

Merge "Properly describe exception" into mnc-dev

parents e861c8eb 876b7d8f
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -200,10 +200,8 @@ static void report_exception(JNIEnv* env, jthrowable excep, const char* msg)
         * that can be made while an exception is pending, so we want to
         * get the VM ptr, throw the exception, and then detach the thread.
         */
        JavaVM* vm = jnienv_to_javavm(env);
        env->Throw(excep);
        vm->DetachCurrentThread();
        sleep(60);
        env->ExceptionDescribe();
        ALOGE("Forcefully exiting");
        exit(1);
    }