Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
pbacsko committed Apr 1, 2024
1 parent 36525bb commit f4c9f12
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/dispatcher/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,10 @@ func Stop() {

close(getDispatcher().stopChan)
stopWait := make(chan struct{})
defer close(stopWait)

go func() {
defer close(stopWait)
getDispatcher().stopped.Wait()
stopWait <- struct{}{}
}()

// wait until the main event loop stops properly
Expand Down

0 comments on commit f4c9f12

Please sign in to comment.