Release lock before notify

This commit is contained in:
Isaac Connor 2022-02-20 10:33:13 -05:00
parent 02ccf13c7b
commit fc21fb643e
1 changed files with 1 additions and 1 deletions

View File

@ -242,8 +242,8 @@ void zmDbQueue::stop() {
std::unique_lock<std::mutex> lock(mMutex); std::unique_lock<std::mutex> lock(mMutex);
mTerminate = true; mTerminate = true;
mCondition.notify_all();
} }
mCondition.notify_all();
if (mThread.joinable()) mThread.join(); if (mThread.joinable()) mThread.join();
} }