mirror of https://github.com/louislam/uptime-kuma
Update server/util-server.js
Co-authored-by: Frank Elsinga <frank@elsinga.de>pull/3234/head
parent
8897385690
commit
d37c33ad42
|
@ -416,7 +416,7 @@ exports.redisPingAsync = function (dsn) {
|
|||
url: dsn
|
||||
});
|
||||
client.on("error", (err) => {
|
||||
client.disconnect();
|
||||
if (client.isOpen) client.disconnect();
|
||||
reject(err);
|
||||
});
|
||||
client.connect().then(() => {
|
||||
|
|
Loading…
Reference in New Issue