mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-01 01:25:45 -04:00
Fix: Disconnect redis after ping
This commit is contained in:
parent
94c3861608
commit
230de63460
@ -405,6 +405,9 @@ exports.redisPingAsync = function (dsn) {
|
||||
});
|
||||
client.connect().then(() => {
|
||||
client.ping().then((res, err) => {
|
||||
if (client.isOpen) {
|
||||
client.disconnect();
|
||||
}
|
||||
if (err) {
|
||||
reject(err);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user