fix(portforward): service start error not treated as critical

A service start error can happen if the service is started after the Wireguard VPN tunnel is up, but the tunnel does not work. The VPN is then internally restarted, causing the service start error, so it should not be treated as a critical error.
This commit is contained in:
Quentin McGaw
2023-10-07 13:21:32 +00:00
parent 6c639fcf7f
commit 1c43a1d55b

View File

@@ -121,12 +121,6 @@ func (l *Loop) run(runCtx context.Context, runDone chan<- struct{},
// and if it failed to start.
updateResult <- err
}
if err != nil {
if runCtx.Err() == nil { // crashed but NOT stopped
runErrorCh <- fmt.Errorf("starting new service: %w", err)
}
return
}
}
}