From fc21fb643e030d898d66726df326dd1e9025b9de Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sun, 20 Feb 2022 10:33:13 -0500 Subject: [PATCH] Release lock before notify --- src/zm_db.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zm_db.cpp b/src/zm_db.cpp index d8127c6ed..7ddf60c48 100644 --- a/src/zm_db.cpp +++ b/src/zm_db.cpp @@ -242,8 +242,8 @@ void zmDbQueue::stop() { std::unique_lock lock(mMutex); mTerminate = true; - mCondition.notify_all(); } + mCondition.notify_all(); if (mThread.joinable()) mThread.join(); }