Fix server freeze on client absence.

This commit is contained in:
huwpascoe
2014-09-24 23:57:55 +01:00
parent 20a41d8803
commit d150ea1721
4 changed files with 53 additions and 20 deletions

View File

@@ -34,6 +34,11 @@ namespace OpenRA.Network
public void ClientQuit( int clientId, int lastClientFrame )
{
if (lastClientFrame == -1)
lastClientFrame = framePackets
.Where(x => x.Value.ContainsKey(clientId))
.Select(x => x.Key).OrderBy(x => x).LastOrDefault();
clientQuitTimes[clientId] = lastClientFrame;
}