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
1 changed files with 1 additions and 1 deletions

View File

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