log the catched exception when a client is dropped

because order dispatching failed for debugging
This commit is contained in:
Matthias Mailänder
2013-06-17 20:46:02 +02:00
parent b01d55f1f6
commit 875ac468d3

View File

@@ -381,8 +381,11 @@ namespace OpenRA.Server
ms.Write( BitConverter.GetBytes( frame ) );
ms.Write( data );
c.socket.Send( ms.ToArray() );
catch (Exception e)
{
DropClient(c);
Log.Write("server", "Dropping client {0} because dispatching orders failed: {1}", client.ToString(), e);
}
catch (Exception) { DropClient(c); }
}
public void DispatchOrdersToClients(Connection conn, int frame, byte[] data)