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

Commit 56104e6f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix the system_error while calling thread::join() in NativeCallbackThread."

parents 9c7e9034 4d5db38c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ void NativeCallbackThread::stop() {
        mQueueCond.notify_one();
    }

    if (mThread.get_id() == std::thread::id()) {
    if (mThread.get_id() == std::this_thread::get_id()) {
        // you can't self-join a thread, but it's ok when calling from our sub-task
        ALOGD("About to stop native callback thread %p", this);
        mThread.detach();