mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Trying to reconnect when ongoing MySQL connection failed
This commit is contained in:
parent
a6df9be98e
commit
26a2c91235
|
@ -78,9 +78,7 @@ IDbConnection::Status CMysqlConnection::Connect()
|
|||
dbg_msg("sql", "Unknown Error cause by the MySQL/C++ Connector");
|
||||
}
|
||||
|
||||
m_InUse.store(false);
|
||||
dbg_msg("sql", "ERROR: SQL connection failed");
|
||||
return Status::ERROR;
|
||||
dbg_msg("sql", "ERROR: SQL connection failed, trying to reconnect");
|
||||
}
|
||||
|
||||
try
|
||||
|
@ -158,6 +156,7 @@ IDbConnection::Status CMysqlConnection::Connect()
|
|||
{
|
||||
dbg_msg("sql", "Unknown Error cause by the MySQL/C++ Connector");
|
||||
}
|
||||
m_InUse.store(false);
|
||||
|
||||
#endif
|
||||
dbg_msg("sql", "ERROR: sql connection failed");
|
||||
|
|
Loading…
Reference in a new issue