Core/Logging: Force synchronous logging after io_service shutdown - fixes logging on worldserver shutdown

This commit is contained in:
Shauren
2016-02-23 23:41:18 +01:00
parent 8086a39210
commit a0b2be6c1d
3 changed files with 10 additions and 0 deletions

View File

@@ -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();