Explorar el Código

When we lose connection to mysql we don't have to close connection (I guess?) trying to resolve a rare crash

Image hace 2 años
padre
commit
13abfca43d
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  1. 0 1
      EQ2/source/common/DatabaseNew.cpp

+ 0 - 1
EQ2/source/common/DatabaseNew.cpp

@@ -161,7 +161,6 @@ bool DatabaseNew::Query(const char *query, ...) {
 
 		if (mysql_errno(&mysql) == CR_SERVER_LOST || mysql_errno(&mysql) == CR_SERVER_GONE_ERROR) {
 			LogWrite(DATABASE__ERROR, 0, "Database", "Lost connection, attempting to recover and retry query...");
-			mysql_close(&mysql);
 			Connect();
 
 			// retry attempt of previous query (1 try and we give up)