diff options
Diffstat (limited to 'src/Log.cpp')
-rw-r--r-- | src/Log.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Log.cpp b/src/Log.cpp index 4780f58..0792fcf 100644 --- a/src/Log.cpp +++ b/src/Log.cpp @@ -77,9 +77,7 @@ void Logger::io_process() set_thread_name("logger"); while (1) { log_message_t m; - while (m_message_queue.pop(m) == false) { - std::this_thread::sleep_for(std::chrono::milliseconds(10)); - } + m_message_queue.wait_and_pop(m); auto message = m.message; |