mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
Notifier: fix Stop() so it actually notifies the thread.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user