You've already forked lidgren-network-gen3
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:
@@ -157,6 +157,7 @@ namespace Lidgren.Network
|
||||
if (serverConnection == null)
|
||||
{
|
||||
LogWarning("Cannot send message, no server connection!");
|
||||
Recycle(msg);
|
||||
return NetSendResult.FailedNotConnected;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user