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

recycle outgoing messages even when throwing exception because of invalid recipients

This commit is contained in:
Michael Lidgren
2015-05-13 14:38:30 +02:00
parent 513d4d6da1
commit b374cf7e00
2 changed files with 9 additions and 0 deletions

View File

@@ -157,6 +157,7 @@ namespace Lidgren.Network
if (serverConnection == null)
{
LogWarning("Cannot send message, no server connection!");
Recycle(msg);
return NetSendResult.FailedNotConnected;
}