We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 175d95c commit 9d71cb5Copy full SHA for 9d71cb5
db/redis.js
@@ -24,7 +24,7 @@ module.exports.client = function() {
24
*/
25
module.exports.connect = async function(connection) {
26
27
- if (client !== null) {
+ if (client !== null && client.connected) {
28
return client;
29
}
30
0 commit comments