Skip to content

Commit 4a8667d

Browse files
committed
Don't try to kick the same connection twice
1 parent d138569 commit 4a8667d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

gpcm/kick.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ func findMatchingSessions(badSession *GameSpySession) []*GameSpySession {
8383
}
8484

8585
for _, session := range sessions {
86+
if session.ConnIndex == badSession.ConnIndex {
87+
// We already know to kick this one. Don't try and kick twice.
88+
continue
89+
}
90+
8691
if badSession.DeviceId != 67349608 && badSession.DeviceId == session.DeviceId {
8792
ret = append(ret, session)
8893
continue

0 commit comments

Comments
 (0)