mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-09 15:40:55 +08:00
Update server/util-server.js
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
@@ -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(() => {
|
||||
|
Reference in New Issue
Block a user