mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
@@ -513,6 +513,7 @@ bool MySQLConnection::_HandleMySQLErrno(uint32 errNo, uint8 attempts /*= 5*/)
|
||||
case CR_SERVER_GONE_ERROR:
|
||||
case CR_SERVER_LOST:
|
||||
case CR_SERVER_LOST_EXTENDED:
|
||||
{
|
||||
if (m_Mysql)
|
||||
{
|
||||
TC_LOG_ERROR("sql.sql", "Lost the connection to the MySQL server!");
|
||||
@@ -520,7 +521,8 @@ bool MySQLConnection::_HandleMySQLErrno(uint32 errNo, uint8 attempts /*= 5*/)
|
||||
mysql_close(m_Mysql);
|
||||
m_Mysql = nullptr;
|
||||
}
|
||||
/* fallthrough */
|
||||
}
|
||||
/* fallthrough */
|
||||
case CR_CONN_HOST_ERROR:
|
||||
{
|
||||
TC_LOG_INFO("sql.sql", "Attempting to reconnect to the MySQL server...");
|
||||
|
||||
Reference in New Issue
Block a user