1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2025-02-03 13:11:34 +02:00

Fix: Disconnect redis after ping

This commit is contained in:
Nelson Chan 2023-03-08 21:47:52 +08:00
parent 94c3861608
commit 230de63460

View File

@ -405,6 +405,9 @@ exports.redisPingAsync = function (dsn) {
}); });
client.connect().then(() => { client.connect().then(() => {
client.ping().then((res, err) => { client.ping().then((res, err) => {
if (client.isOpen) {
client.disconnect();
}
if (err) { if (err) {
reject(err); reject(err);
} else { } else {