mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[8825] At fail start db connections stop all started db connection threads.
This will restore state before start Db function call and prevent crashes at delayed access to log singleton in case outdated DB structure detection.
This commit is contained in:
parent
55e715dddd
commit
bc5fb40867
3 changed files with 39 additions and 1 deletions
|
|
@ -332,7 +332,11 @@ bool StartDB()
|
|||
}
|
||||
|
||||
if(!loginDatabase.CheckRequiredField("realmd_db_version",REVISION_DB_REALMD))
|
||||
{
|
||||
///- Wait for already started DB delay threads to end
|
||||
loginDatabase.HaltDelayThread();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue