From 60244d49103751aa75ee07b42a841a34fc98800a Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Tue, 20 Sep 2016 21:13:07 +0100 Subject: [PATCH] Clean up ClientPings when a player drops from the server. --- OpenRA.Game/Server/Server.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenRA.Game/Server/Server.cs b/OpenRA.Game/Server/Server.cs index 27fb47c941..f395413ccd 100644 --- a/OpenRA.Game/Server/Server.cs +++ b/OpenRA.Game/Server/Server.cs @@ -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