Commit 54b86812 authored by Gabi Melman's avatar Gabi Melman

Update async_sink.h

parent 94d2556d
......@@ -182,7 +182,11 @@ inline void spdlog::sinks::async_sink::shutdown(const log_clock::duration& timeo
inline void spdlog::sinks::async_sink::_push_sentry()
{
if (_last_backthread_ex)
throw *std::move(_last_backthread_ex);
{
auto ex = std::move(_last_backthread_ex);
_last_backthread_ex.reset();
throw *ex;
}
if (!_active)
throw(spdlog_ex("async_sink not active"));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment