mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-26 06:04:13 -08:00
Update server/util-server.js
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
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 a new issue