* Only call Database::ThreadStart()/ThreadEnd() once per thread.
* Some cleanups in MapUpdater/DelayExecutor. --HG-- branch : trunk
This commit is contained in:
@@ -373,8 +373,6 @@ 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];
|
||||
bool canflush = true;
|
||||
@@ -444,6 +442,4 @@ void CliRunnable::run()
|
||||
|
||||
///- End the database thread
|
||||
WorldDatabase.ThreadEnd(); // free mySQL thread resources
|
||||
CharacterDatabase.ThreadEnd();
|
||||
loginDatabase.ThreadEnd();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user