Properly end mysql connections and libraries on exit.
--HG-- branch : trunk
This commit is contained in:
@@ -79,6 +79,8 @@ void DatabaseWorkerPool::Close()
|
||||
{
|
||||
}
|
||||
DEBUG_LOG("Synchroneous database threads exited succesfuly.");
|
||||
|
||||
mysql_library_end();
|
||||
}
|
||||
|
||||
/*! This function creates a new MySQL connection for every MapUpdate thread
|
||||
|
||||
@@ -40,6 +40,7 @@ m_Mysql(NULL)
|
||||
|
||||
MySQLConnection::~MySQLConnection()
|
||||
{
|
||||
mysql_close(m_Mysql);
|
||||
}
|
||||
|
||||
bool MySQLConnection::Open(const std::string& infoString)
|
||||
|
||||
Reference in New Issue
Block a user