diff --git a/libs/utils/Threads.cpp b/libs/utils/Threads.cpp index f6c55e4d8..0b360f45b 100644 --- a/libs/utils/Threads.cpp +++ b/libs/utils/Threads.cpp @@ -775,6 +775,7 @@ int Thread::_threadLoop(void* user) self->mLock.lock(); self->mRunning = false; self->mThreadExitedCondition.broadcast(); + self->mThread = thread_id_t(-1); // thread id could be reused self->mLock.unlock(); break; }