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

fix: fix console wallet tick events endless loop edge case at shutdown #3380

Conversation

hansieodendaal
Copy link
Contributor

Description

Fixed an edge case with console wallet shutdown where the tick events send loop will continue to send key or tick events after the receiver part of the channel has been closed. From the documentation: "A send operation can only fail if the receiving end of a channel is disconnected." The tick event sending loop is now exited if the receiver channel has been closed.

Motivation and Context

It was found with system-level testing that with shutdown some times multiple key or tick events are being sent on a closed receiver channel and prevents the wallet from shutting down cleanly.

How Has This Been Tested?

System-level testing.

stringhandler
stringhandler previously approved these changes Sep 22, 2021
Fixed an edge case with console wallet shutdown where the tick events send
loop will continue to send key events after the receiver part of the channel
has been closed.
@aviator-app aviator-app bot merged commit b40a98f into tari-project:development Sep 28, 2021
@hansieodendaal hansieodendaal deleted the ho_fix_console_wallet_shutting_down_endless_loop branch September 28, 2021 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants