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

Handshakes are now resent if lost. Documentation updated.

This commit is contained in:
lidgren
2010-12-25 09:51:49 +00:00
parent cb887dd4b5
commit b83ec10d8d
5 changed files with 96 additions and 14 deletions

View File

@@ -90,10 +90,14 @@ namespace Lidgren.Network
if (status == m_status)
return;
m_status = status;
if (reason == null)
reason = string.Empty;
// new status equals potentially new handshake attempts
m_handshakeAttempts = 0;
if (m_status == NetConnectionStatus.Connected)
{
m_timeoutDeadline = (float)NetTime.Now + m_peerConfiguration.m_connectionTimeout;