fix(portforward): restart service on run error
- fix when port assigned changes
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user