Merge pull request #2729 from chakflying/patch-1

Fix [MySQL monitor]: Fix error when connection failed
This commit is contained in:
Louis Lam 2023-02-07 16:41:38 +08:00 committed by GitHub
commit e241728419
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -323,7 +323,7 @@ exports.mysqlQuery = function (connectionString, query) {
reject(err);
})
.finally(() => {
connection.end();
connection.destroy();
});
});
};