Don't try to kick the same connection twice

This commit is contained in:
ppeb 2025-04-12 19:27:32 -05:00
parent d138569d95
commit 4a8667db1a
No known key found for this signature in database
GPG Key ID: CC147AD1B3D318D0

View File

@ -83,6 +83,11 @@ func findMatchingSessions(badSession *GameSpySession) []*GameSpySession {
}
for _, session := range sessions {
if session.ConnIndex == badSession.ConnIndex {
// We already know to kick this one. Don't try and kick twice.
continue
}
if badSession.DeviceId != 67349608 && badSession.DeviceId == session.DeviceId {
ret = append(ret, session)
continue