oops, x2.

This commit is contained in:
Bob
2010-01-23 20:20:31 +13:00
parent 057d248ee5
commit 8d53e7dc97
2 changed files with 2 additions and 2 deletions

View File

@@ -215,7 +215,7 @@ namespace OpenRA.Server
try
{
c.socket.Blocking = true;
c.socket.Send(BitConverter.GetBytes(data.Length + 8));
c.socket.Send(BitConverter.GetBytes(data.Length + 4));
c.socket.Send(BitConverter.GetBytes(client));
c.socket.Send(BitConverter.GetBytes(frame));
c.socket.Send(data);

View File

@@ -92,7 +92,7 @@ namespace OpenRa.Network
receivedPackets.Add( new ReceivedPacket { FromClient = client, Data = buf } );
}
}
catch
catch( SocketException )
{
connectionState = ConnectionState.NotConnected;
}