From 230de63460d957e0f04f8b02f37e37059ed0846e Mon Sep 17 00:00:00 2001 From: Nelson Chan Date: Wed, 8 Mar 2023 21:47:52 +0800 Subject: [PATCH] Fix: Disconnect redis after ping --- server/util-server.js | 3 +++ 1 file changed, 3 insertions(+) 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 {