[9265] * Call Database::ThreadStart()/ThreadEnd() for all DBs.

This commit is contained in:
XTZGZoReX 2010-01-29 19:56:05 +01:00
parent ceefebf187
commit 49a0d352b6
4 changed files with 16 additions and 3 deletions

View file

@ -42,6 +42,9 @@ void WorldRunnable::run()
{
///- Init new SQL thread for the world database
WorldDatabase.ThreadStart(); // let thread do safe mySQL requests (one connection call enough)
CharacterDatabase.ThreadStart();
loginDatabase.ThreadStart();
sWorld.InitResultQueue();
uint32 realCurrTime = 0;
@ -90,4 +93,6 @@ void WorldRunnable::run()
///- End the database thread
WorldDatabase.ThreadEnd(); // free mySQL thread resources
CharacterDatabase.ThreadEnd();
loginDatabase.ThreadEnd();
}