From e25d9fc96ae8c9986787d78aaab5edaee4174831 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Fri, 11 Dec 2015 21:13:41 -0800 Subject: [PATCH] Use correct condition variable in DispatchThreadMain(). --- src/Dispatcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dispatcher.cpp b/src/Dispatcher.cpp index d5049c82bb..88484d17c1 100644 --- a/src/Dispatcher.cpp +++ b/src/Dispatcher.cpp @@ -218,8 +218,8 @@ void DispatcherBase::DispatchThreadMain() { // wait for periodic or when flushed timeout_time += std::chrono::milliseconds(m_update_rate); - m_reconnect_cv.wait_until(flush_lock, timeout_time, - [&] { return !m_active || m_do_flush; }); + m_flush_cv.wait_until(flush_lock, timeout_time, + [&] { return !m_active || m_do_flush; }); m_do_flush = false; if (!m_active) break; // in case we were woken up to terminate