Skip to content

Commit

Permalink
chore: better disconnect resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
manast committed Aug 10, 2020
1 parent 8bdc5ee commit 2c54479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/queue.js
Expand Up @@ -514,7 +514,7 @@ async function redisClientDisconnect(client) {
).catch(() => {
client.once('error', _reject);
client.disconnect();
if (client.status === 'reconnecting') {
if (['connecting', 'reconnecting'].includes(client.status)) {
resolve();
}
});
Expand Down

0 comments on commit 2c54479

Please sign in to comment.