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); reject(err);
}) })
.finally(() => { .finally(() => {
connection.end(); connection.destroy();
}); });
}); });
}; };