mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Battlenet: Fixed possible shutdown crash
This commit is contained in:
@@ -160,13 +160,14 @@ int main(int argc, char** argv)
|
||||
// Close the Database Pool and library
|
||||
StopDB();
|
||||
|
||||
_ioService.reset();
|
||||
|
||||
TC_LOG_INFO("server.bnetserver", "Halting process...");
|
||||
|
||||
signals.clear();
|
||||
|
||||
_ioService.reset();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/// Initialize connection to the database
|
||||
bool StartDB()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user