mirror of
https://github.com/slackhq/nebula.git
synced 2026-05-16 04:47:38 +02:00
wait for goroutines to finish and for tun to actually be closed
This commit is contained in:
@@ -144,10 +144,10 @@ func New(control *nebula.Control) (*Service, error) {
|
||||
}
|
||||
})
|
||||
|
||||
// Add the nebula wait function to the group
|
||||
// Add the nebula wait function to the group so a fatal reader error
|
||||
// propagates out through errgroup.Wait().
|
||||
eg.Go(func() error {
|
||||
wait()
|
||||
return nil
|
||||
return wait()
|
||||
})
|
||||
|
||||
return &s, nil
|
||||
|
||||
Reference in New Issue
Block a user