fix(vpn): do not close wait error channel on consumer side

This commit is contained in:
Quentin McGaw
2022-06-06 02:56:40 +00:00
parent e998372ce2
commit b71c8e58f4
2 changed files with 0 additions and 3 deletions

View File

@@ -86,7 +86,6 @@ func (l *Loop) Run(ctx context.Context, done chan<- struct{}) {
l.logger.Info("starting")
stayHere = false
case err := <-waitError: // unexpected error
close(waitError)
closeStreams()
unboundCancel()

View File

@@ -96,8 +96,6 @@ func (l *Loop) Run(ctx context.Context, done chan<- struct{}) {
l.logger.Info("starting")
stayHere = false
case err := <-waitError: // unexpected error
close(waitError)
l.statusManager.Lock() // prevent SetStatus from running in parallel
l.cleanup(context.Background(), portForwarding)