re-align to master

This commit is contained in:
JackDoan
2026-07-14 11:38:43 -05:00
parent 49028cb755
commit 05f7923860
6 changed files with 23 additions and 30 deletions
+2 -3
View File
@@ -45,14 +45,13 @@ func (p *program) Start(s service.Service) error {
return err
}
wait, err := p.control.Start()
if err != nil {
if err := p.control.Start(); err != nil {
return err
}
// Nebula can stop itself on a fatal packet reader error, make sure to log it if it happens.
go func() {
if err := wait(); err != nil {
if err := p.control.Wait(); err != nil {
logger.Error(fmt.Sprintf("Nebula stopped due to fatal error: %v", err))
os.Exit(2)
}