From d37c33ad42f994137c0a989cb4b7f9a1f16906c2 Mon Sep 17 00:00:00 2001 From: kefoster951 <42386206+kefoster951@users.noreply.github.com> Date: Mon, 12 Jun 2023 11:06:20 -0400 Subject: [PATCH] Update server/util-server.js Co-authored-by: Frank Elsinga --- server/util-server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(() => {