mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-04-22 01:07:22 -05:00
Don't try to kick the same connection twice
This commit is contained in:
parent
d138569d95
commit
4a8667db1a
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user