mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
Merge pull request #2729 from chakflying/patch-1
Fix [MySQL monitor]: Fix error when connection failed
This commit is contained in:
commit
e241728419
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@ exports.mysqlQuery = function (connectionString, query) {
|
||||||
reject(err);
|
reject(err);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
connection.end();
|
connection.destroy();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue