mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-25 19:06:13 +03:00
Update server/util-server.js
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
parent
8897385690
commit
d37c33ad42
1 changed files with 1 additions and 1 deletions
|
@ -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