mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-26 16:26:52 -06: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
|
url: dsn
|
||||||
});
|
});
|
||||||
client.on("error", (err) => {
|
client.on("error", (err) => {
|
||||||
client.disconnect();
|
if (client.isOpen) client.disconnect();
|
||||||
reject(err);
|
reject(err);
|
||||||
});
|
});
|
||||||
client.connect().then(() => {
|
client.connect().then(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user