mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Database: Fixed a shutdown crash happening if worldserver did not fully start up (for example applying a db update failed)
This commit is contained in:
@@ -167,7 +167,8 @@ void DatabaseWorkerPool<T>::Close()
|
||||
{
|
||||
TC_LOG_INFO("sql.driver", "Closing down DatabasePool '{}'.", GetDatabaseName());
|
||||
|
||||
_ioContext->stop();
|
||||
if (_ioContext)
|
||||
_ioContext->stop();
|
||||
|
||||
//! Closes the actualy MySQL connection.
|
||||
_connections[IDX_ASYNC].clear();
|
||||
|
||||
Reference in New Issue
Block a user