[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

@ -294,6 +294,8 @@ void CliRunnable::run()
{
///- Init new SQL thread for the world database (one connection call enough)
WorldDatabase.ThreadStart(); // let thread do safe mySQL requests
CharacterDatabase.ThreadStart();
loginDatabase.ThreadStart();
char commandbuf[256];
@ -352,4 +354,6 @@ void CliRunnable::run()
///- End the database thread
WorldDatabase.ThreadEnd(); // free mySQL thread resources
CharacterDatabase.ThreadEnd();
loginDatabase.ThreadEnd();
}