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 return
case <-updatedSignal: // first and subsequent start trigger case <-updatedSignal: // first and subsequent start trigger
case err := <-serviceRunError: case err := <-serviceRunError:
runErrorCh <- err l.logger.Error(err.Error())
return
} }
firstRun := l.service == nil firstRun := l.service == nil