Skip to content

Commit

Permalink
fix: avoid using closed session
Browse files Browse the repository at this point in the history
  • Loading branch information
dongxinb authored Jul 6, 2020
1 parent adcaa06 commit 7b0d1fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/relay/mwss.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func (tr *mwssTransporter) Dial(addr string) (conn net.Conn, err error) {
if session != nil && session.IsClosed() {
Logger.Infof("find closed session %v idx: %d", session, sessionIndex)
sessions = append(sessions[:sessionIndex], sessions[sessionIndex+1:]...)
ok = false
}

// 创建新的session
Expand Down

0 comments on commit 7b0d1fe

Please sign in to comment.