Skip to content

Commit

Permalink
code simplify
Browse files Browse the repository at this point in the history
Signed-off-by: He Xian <[email protected]>
  • Loading branch information
hexian000 committed Sep 16, 2024
1 parent a40c22e commit d1a6dfe
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions v2/tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,7 @@ func (t *Tunnel) run() {
t.runWithRedial()
return
}
for {
select {
case <-t.s.g.CloseC():
// server shutdown
return
}
}
<-t.s.g.CloseC()
}

func (t *Tunnel) addMux(mux *yamux.Session, isDialed bool) {
Expand Down

0 comments on commit d1a6dfe

Please sign in to comment.