From ad732e3eea4292957a81570bc03ce51a04e06606 Mon Sep 17 00:00:00 2001 From: davide Date: Mon, 12 Sep 2016 14:59:33 +0200 Subject: [PATCH] error handling was not handled --- include/spdlog/details/async_log_helper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/details/async_log_helper.h b/include/spdlog/details/async_log_helper.h index 31f8c771..c984ebc9 100644 --- a/include/spdlog/details/async_log_helper.h +++ b/include/spdlog/details/async_log_helper.h @@ -204,7 +204,7 @@ inline spdlog::details::async_log_helper::async_log_helper( _terminated(false), _overflow_policy(overflow_policy), _flush_interval_ms(flush_interval_ms), - _thread_loop_handle( new Func( [this](){ return this->process_next_msg();} ) ) + _thread_loop_handle( new Func( [this](){ return this->worker_loop();} ) ) { th_pool->subscribe_handle(_thread_loop_handle); } @@ -270,7 +270,7 @@ inline bool spdlog::details::async_log_helper::worker_loop() { _err_handler("Unknown exception"); } - return true; + return false; } // process next message in the queue