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

Receiving an ack for a reliable message sent less than two seconds ago will postpone timeout

This commit is contained in:
Michael Lidgren
2015-05-20 09:14:58 +02:00
parent 4a248c9069
commit dff2f0131f
2 changed files with 19 additions and 5 deletions

View File

@@ -106,6 +106,11 @@ namespace Lidgren.Network
m_remoteEndPoint = endPoint;
}
internal void ResetTimeout(double now)
{
m_timeoutDeadline = now + m_peerConfiguration.m_connectionTimeout;
}
internal void SetStatus(NetConnectionStatus status, string reason)
{
// user or library thread