mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Logging: Force synchronous logging after io_service shutdown - fixes logging on worldserver shutdown
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user