Преглед на файлове

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

Image преди 2 години
родител
ревизия
13abfca43d
променени са 1 файла, в които са добавени 0 реда и са изтрити 1 реда
  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)