forked from acorn-io/baaah
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wait for backend to start before starting any subsequent controllers
A race condition was discovered where controllers that themselves start other controllers would race the `started` atomic.Bool. If the sub-controller read it before the backend.Start set it to true, then the sub-controller would never start. This change adds a mutex to alleviate this race. Signed-off-by: Donnie Adams <[email protected]> Co-authored-by: tylerslaton <[email protected]> Signed-off-by: Donnie Adams <[email protected]>
- Loading branch information
1 parent
91fb95b
commit 9459069
Showing
1 changed file
with
18 additions
and
7 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