diff --git a/server/util-server.js b/server/util-server.js index 667d5dc68..0cf959596 100644 --- a/server/util-server.js +++ b/server/util-server.js @@ -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(() => {