diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-06-01 21:44:59 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-06-01 21:44:59 +0200 |
commit | 201cb2b1fac77c542a20aea2ac1d80c78a3d80e9 (patch) | |
tree | 8b9158fe7119b791f14bd292c9620fea3bc5bcc0 /src/plugins | |
parent | 4b97ef51562df8d606cb8fe21cf9b4464767febb (diff) |
Fix program stuck on shutdown
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(); } |