Update server/util-server.js

Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
kefoster951 2023-06-12 11:06:20 -04:00 committed by GitHub
parent 8897385690
commit d37c33ad42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(() => {