small improvment in async shutdown

This commit is contained in:
gabi 2014-11-05 23:15:18 +02:00
parent 58688d7d1c
commit ca42657d3c

View File

@ -142,7 +142,7 @@ inline void spdlog::sinks::async_sink::shutdown(const std::chrono::milliseconds&
auto until = log_clock::now() + timeout; auto until = log_clock::now() + timeout;
while (_q.size() > 0 && log_clock::now() < until) 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(); _shutdown();