1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-19 08:36:34 +09:00

Recycle outgoing ping and mtu messages

This commit is contained in:
lidgren
2014-11-05 09:20:26 +00:00
parent 6533e272e3
commit 740cc2ec1b
2 changed files with 4 additions and 0 deletions

View File

@@ -74,6 +74,7 @@ namespace Lidgren.Network
m_peer.SendPacket(len, m_remoteEndPoint, 1, out connectionReset);
m_statistics.PacketSent(len, 1);
m_peer.Recycle(om);
}
internal void SendPong(int pingNumber)
@@ -91,6 +92,7 @@ namespace Lidgren.Network
m_peer.SendPacket(len, m_remoteEndPoint, 1, out connectionReset);
m_statistics.PacketSent(len, 1);
m_peer.Recycle(om);
}
internal void ReceivedPong(float now, int pongNumber, float remoteSendTime)