mirror of https://github.com/v2ray/v2ray-core
fix inactive session removal
parent
19926b8e4f
commit
275ab2ae8c
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue