mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
fix inactive session removal
This commit is contained in:
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
Block a user