-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multi: Make GUI run blocking and wait for shutdown.
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.
- Loading branch information
Showing
2 changed files
with
89 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters