Skip to content
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

politeiavoter: Fix retry loop bug. #1592

Merged
merged 1 commit into from Dec 2, 2021
Merged

Conversation

lukebp
Copy link
Member

@lukebp lukebp commented Dec 1, 2021

This commit fixes a bug that was preventing the failed vote retry loop
from exiting when a SIGINT (ctrl+c) is received. The user was being
forced to use a SIGKILL to kill the politeiavoter process.

The root cause was that the retry loop was using a time.Sleep() call
instead of using the WaitFor() call, which accepts a context and exits
when the context is canceled.


Introduced by #1556.
Closes #1590.

This commit fixes a bug that was preventing the failed vote retry loop
from exiting when a SIGINT (ctrl+c) is received. The user was being
forced to use a SIGKILL to kill the politeiavoter process.

The root cause was that the retry loop was using a time.Sleep() call
instead of using the WaitFor() call, which accepts a context and exits
when the context is canceled.
@lukebp lukebp added bug A bug that made it into a production enviroment. 91cfcc8 labels Dec 1, 2021
@lukebp lukebp merged commit 5921145 into decred:master Dec 2, 2021
@lukebp lukebp deleted the bug-pivoter branch February 6, 2022 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug that made it into a production enviroment.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

politeiavoter: Bunches ignoring interrupt signal.
2 participants