aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Database/MySQLConnection.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-08-19 16:35:52 +0200
committerMachiavelli <none@none>2010-08-19 16:35:52 +0200
commit46438f9f92c52deef2c6f0ed35402885127eeeb7 (patch)
treea42729380270687f9f7c568ded4fd5e7fad99b82 /src/server/shared/Database/MySQLConnection.cpp
parent7d915911f9a5606127afd6f46a2427a9434fc6f3 (diff)
- Call mysql_thread_end() for every deleted MySQLConnection instance, should fix the ¨Error in my_thread_global_end(): X threads didn't exit¨ issue. (Thanks to Aokromes for testing)
- Add some debug info to help trace down the other causes of the shutdown crash. --HG-- branch : trunk
Diffstat (limited to 'src/server/shared/Database/MySQLConnection.cpp')
-rw-r--r--src/server/shared/Database/MySQLConnection.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/shared/Database/MySQLConnection.cpp b/src/server/shared/Database/MySQLConnection.cpp
index 3be6bf76a8c..ccb24935f81 100644
--- a/src/server/shared/Database/MySQLConnection.cpp
+++ b/src/server/shared/Database/MySQLConnection.cpp
@@ -40,6 +40,7 @@ m_Mysql(NULL)
MySQLConnection::~MySQLConnection()
{
+ MySQL::Thread_End();
mysql_close(m_Mysql);
}