Fixed server disconnection bug. Will now detect client disconnections on mono.

This commit is contained in:
Matthew
2010-03-02 00:59:01 +13:00
parent 1f168bc0ad
commit e7b48c7ea6

View File

@@ -1,4 +1,4 @@
#region Copyright & License Information
#region Copyright & License Information
/*
* Copyright 2007,2009,2010 Chris Forbes, Robert Pepperell, Matthew Bowra-Dean, Paul Chote, Alli Witheford.
* This file is part of OpenRA.
@@ -62,7 +62,12 @@ namespace OpenRA.Server
if (0 < (len = socket.Receive(rx)))
data.AddRange(rx.Take(len));
else
{
if (len == 0)
Server.DropClient(this, null);
break;
}
}
catch (SocketException e)
{