diff --git a/server/util-server.js b/server/util-server.js index 129e15265..5b29d2844 100644 --- a/server/util-server.js +++ b/server/util-server.js @@ -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 {