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

Better NetSendResult when trying to send on an unconnected connection

This commit is contained in:
lidgren
2012-01-16 09:27:56 +00:00
parent 4cd624c42c
commit 61ec7e3add
4 changed files with 10 additions and 8 deletions

View File

@@ -128,7 +128,7 @@ namespace Lidgren.Network
if (serverConnection == null)
{
LogWarning("Cannot send message, no server connection!");
return NetSendResult.Failed;
return NetSendResult.FailedNotConnected;
}
return serverConnection.SendMessage(msg, method, 0);
@@ -143,7 +143,7 @@ namespace Lidgren.Network
if (serverConnection == null)
{
LogWarning("Cannot send message, no server connection!");
return NetSendResult.Failed;
return NetSendResult.FailedNotConnected;
}
return serverConnection.SendMessage(msg, method, sequenceChannel);