1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-10 09:50:43 +00:00

fix inactive session removal

This commit is contained in:
Darien Raymond 2018-11-23 20:47:36 +01:00
parent 19926b8e4f
commit 275ab2ae8c
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -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]