fix(portforward): restart service on run error

- fix when port assigned changes
This commit is contained in:
Quentin McGaw
2023-09-23 12:39:49 +00:00
parent 2ac0f35060
commit 84300db7c1

View File

@@ -73,8 +73,7 @@ func (l *Loop) run(runCtx context.Context, runDone chan<- struct{},
return
case <-updatedSignal: // first and subsequent start trigger
case err := <-serviceRunError:
runErrorCh <- err
return
l.logger.Error(err.Error())
}
firstRun := l.service == nil