From ca42657d3cb98cfdcb3e70df5269cfbf9ab2ea5d Mon Sep 17 00:00:00 2001 From: gabi Date: Wed, 5 Nov 2014 23:15:18 +0200 Subject: [PATCH] small improvment in async shutdown --- include/spdlog/sinks/async_sink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/sinks/async_sink.h b/include/spdlog/sinks/async_sink.h index 373475d4..21620633 100644 --- a/include/spdlog/sinks/async_sink.h +++ b/include/spdlog/sinks/async_sink.h @@ -142,7 +142,7 @@ inline void spdlog::sinks::async_sink::shutdown(const std::chrono::milliseconds& auto until = log_clock::now() + timeout; while (_q.size() > 0 && log_clock::now() < until) { - std::this_thread::sleep_for(std::chrono::milliseconds(2)); + std::this_thread::sleep_for(std::chrono::milliseconds(5)); } } _shutdown();