Fix: Disconnect redis after ping

pull/2907/head
Nelson Chan 2 years ago
parent 94c3861608
commit 230de63460

@ -405,6 +405,9 @@ exports.redisPingAsync = function (dsn) {
}); });
client.connect().then(() => { client.connect().then(() => {
client.ping().then((res, err) => { client.ping().then((res, err) => {
if (client.isOpen) {
client.disconnect();
}
if (err) { if (err) {
reject(err); reject(err);
} else { } else {

Loading…
Cancel
Save