Merge pull request #12076 from pchote/fix-orphaned-pings

Clean up ClientPings when a player drops from the server.
This commit is contained in:
Oliver Brakmann
2016-09-21 18:17:26 +02:00
committed by GitHub

View File

@@ -568,6 +568,7 @@ namespace OpenRA.Server
DispatchOrdersToClients(toDrop, 0, new ServerOrder("Disconnected", "").Serialize());
LobbyInfo.Clients.RemoveAll(c => c.Index == toDrop.PlayerIndex);
LobbyInfo.ClientPings.RemoveAll(p => p.Index == toDrop.PlayerIndex);
// Client was the server admin
// TODO: Reassign admin for game in progress via an order