diff options
| -rw-r--r-- | services/core/jni/BroadcastRadio/NativeCallbackThread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/jni/BroadcastRadio/NativeCallbackThread.cpp b/services/core/jni/BroadcastRadio/NativeCallbackThread.cpp index 81d46f39d84a..777d344e7a09 100644 --- a/services/core/jni/BroadcastRadio/NativeCallbackThread.cpp +++ b/services/core/jni/BroadcastRadio/NativeCallbackThread.cpp @@ -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(); |