Clean up ClientPings when a player drops from the server.

This commit is contained in:
Paul Chote
2016-09-20 21:13:07 +01:00
parent 57ceda3025
commit 709bd5b441

View File

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