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

multi: Make GUI run blocking and wait for shutdown. #370

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Sep 14, 2023

This updates the gui.Run method to block until the context is canceled as expected and then adds a waitgroup across both it and the hub to allow for clean shutdown of both subsystems prior to shutdown.

It also moves the initial connection and work acquisition prior to launching the subsystems to avoid launching them at all in the event of an error that would prevent the hub from initializing.

This updates the gui.Run method to block until the context is canceled
as expected and then adds a waitgroup across both it and the hub to
allow for clean shutdown of both subsystems prior to shutdown.

It also moves the initial connection and work acquisition prior to
launching the subsystems to avoid launching them at all in the event of
an error that would prevent the hub from initializing.
@jholdstock jholdstock merged commit 97c3a47 into decred:master Sep 15, 2023
2 checks passed
@davecgh davecgh deleted the block_run_and_wait branch September 15, 2023 15:39
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.

3 participants