1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-06 02:11:06 +09:00

Fixed issue where warning message "time to resend handshake" would appear while waiting for connection approval

This commit is contained in:
lidgren
2011-01-17 09:20:45 +00:00
parent bd2a34d627
commit 876905ca92

View File

@@ -75,6 +75,12 @@ namespace Lidgren.Network
case NetConnectionStatus.RespondedConnect:
SendConnectResponse(now, true);
break;
case NetConnectionStatus.None:
if (m_peerConfiguration.IsMessageTypeEnabled(NetIncomingMessageType.ConnectionApproval))
break; // we're probably waiting for connection approval here
m_peer.LogWarning("Time to resend handshake, but status is " + m_status);
break;
default:
m_peer.LogWarning("Time to resend handshake, but status is " + m_status);
break;