You've already forked lidgren-network-gen3
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user