-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
calling disconnect(true) multiple times #1138
Labels
Comments
alexandre-abrioux
added a commit
to alexandre-abrioux/ioredis
that referenced
this issue
May 27, 2020
alexandre-abrioux
added a commit
to alexandre-abrioux/ioredis
that referenced
this issue
May 27, 2020
🎉 This issue has been resolved in version 4.17.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
janus-dev87
added a commit
to janus-dev87/ioredis-work
that referenced
this issue
Mar 1, 2024
## [4.17.3](redis/ioredis@v4.17.2...v4.17.3) (2020-05-30) ### Bug Fixes * race conditions in `Redis#disconnect()` can cancel reconnection unexpectedly ([6fad73b](redis/ioredis@6fad73b)), closes [#1138](redis/ioredis#1138) [#1007](redis/ioredis#1007)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
I've noticed that calling the
disconnect(true)
sequentially multiple times actually cancels the re-connection process.The issue resides in the
disconnect
method where theclearTimeout
function is called regardless of whether or not thereconnect
parameter is set totrue
:I've made a fix that I will introduce in a new PR following the opening of this issue.
Thank you for your time!
PS: this issue might be related to #1007.
The text was updated successfully, but these errors were encountered: