Update last exception moving from worker thread to user thread in async mode
This commit is contained in:
		@@ -181,9 +181,8 @@ inline void spdlog::sinks::async_sink::shutdown(const log_clock::duration& timeo
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
inline void spdlog::sinks::async_sink::_push_sentry()
 | 
					inline void spdlog::sinks::async_sink::_push_sentry()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    std::shared_ptr<spdlog_ex> ex_copy = std::move(_last_backthread_ex);
 | 
					  if (_last_backthread_ex)    
 | 
				
			||||||
    if (ex_copy)
 | 
					        throw *std::move(_last_backthread_ex);
 | 
				
			||||||
        throw *ex_copy;
 | 
					 | 
				
			||||||
    if (!_active)
 | 
					    if (!_active)
 | 
				
			||||||
        throw(spdlog_ex("async_sink not active"));
 | 
					        throw(spdlog_ex("async_sink not active"));
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user