From a0b2be6c1d0ae17ad8a17692d77f2020bbb9296e Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 23 Feb 2016 23:41:18 +0100 Subject: Core/Logging: Force synchronous logging after io_service shutdown - fixes logging on worldserver shutdown --- src/common/Logging/Log.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/common/Logging/Log.cpp') diff --git a/src/common/Logging/Log.cpp b/src/common/Logging/Log.cpp index fb5b9165235..7e1a378b824 100644 --- a/src/common/Logging/Log.cpp +++ b/src/common/Logging/Log.cpp @@ -332,6 +332,13 @@ void Log::Initialize(boost::asio::io_service* ioService) LoadFromConfig(); } +void Log::SetSynchronous() +{ + delete _strand; + _strand = nullptr; + _ioService = nullptr; +} + void Log::LoadFromConfig() { Close(); -- cgit v1.2.3