mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-11-04 21:56:12 +08:00 
			
		
		
		
	Merge pull request #3222 from chakflying/fix/mysql-aborted-connection
Fix: Try to close mysql connection properly
This commit is contained in:
		@@ -342,7 +342,12 @@ exports.mysqlQuery = function (connectionString, query) {
 | 
			
		||||
                    resolve("No Error, but the result is not an array. Type: " + typeof res);
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            try {
 | 
			
		||||
                connection.end();
 | 
			
		||||
            } catch (_) {
 | 
			
		||||
                connection.destroy();
 | 
			
		||||
            }
 | 
			
		||||
        });
 | 
			
		||||
    });
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user