diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/Fourchan.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/Fourchan.cpp b/src/plugins/Fourchan.cpp index d8c80b0..1dfe681 100644 --- a/src/plugins/Fourchan.cpp +++ b/src/plugins/Fourchan.cpp @@ -37,8 +37,10 @@ namespace QuickMedia { Fourchan::~Fourchan() { running = false; - std::unique_lock<std::mutex> lock(thread_list_cache_mutex); - thread_list_update_cv.notify_one(); + { + std::unique_lock<std::mutex> lock(thread_list_cache_mutex); + thread_list_update_cv.notify_one(); + } thread_list_update_thread.join(); } |