Notifier: fix Stop() so it actually notifies the thread.

This commit is contained in:
Peter Johnson
2015-09-05 10:55:24 -07:00
parent 66f9f73cb3
commit 07942bf422

View File

@@ -29,7 +29,7 @@ void Notifier::Start() {
void Notifier::Stop() {
m_active = false;
// send notification so the thread terminates
NotifyEntry("", nullptr, false);
m_cond.notify_one();
if (m_thread.joinable()) m_thread.join();
}