diff --git a/transport/internet/quic/dialer.go b/transport/internet/quic/dialer.go index 3d00be21a..a12907980 100644 --- a/transport/internet/quic/dialer.go +++ b/transport/internet/quic/dialer.go @@ -34,7 +34,7 @@ func removeInactiveSessions(sessions []quic.Session) []quic.Session { } if lastActive < len(sessions) { - for i := 0; i < len(sessions); i++ { + for i := lastActive; i < len(sessions); i++ { sessions[i] = nil } sessions = sessions[:lastActive]