瀏覽代碼

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)