1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-16 15:16:33 +09:00

Reliability fix; first sequenced message was swallowed

This commit is contained in:
lidgren
2010-07-15 05:41:53 +00:00
parent cf74d35cd8
commit 11d33aa446
4 changed files with 33 additions and 10 deletions

View File

@@ -84,15 +84,16 @@ namespace Lidgren.Network
/// <summary>
/// Sends message to server
/// </summary>
public void SendMessage(NetOutgoingMessage msg, NetDeliveryMethod method, int sequenceChannel)
public bool SendMessage(NetOutgoingMessage msg, NetDeliveryMethod method, int sequenceChannel)
{
NetConnection serverConnection = ServerConnection;
if (serverConnection == null)
{
//LogError("Cannot send message, no server connection!");
return;
return false;
}
serverConnection.SendMessage(msg, method, sequenceChannel);
return serverConnection.SendMessage(msg, method, sequenceChannel);
}
public override string ToString()