From 876905ca92849825d7fd34cc9b7affc3881fd08a Mon Sep 17 00:00:00 2001 From: lidgren Date: Mon, 17 Jan 2011 09:20:45 +0000 Subject: [PATCH] Fixed issue where warning message "time to resend handshake" would appear while waiting for connection approval --- Lidgren.Network/NetConnection.Handshake.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Lidgren.Network/NetConnection.Handshake.cs b/Lidgren.Network/NetConnection.Handshake.cs index b930eb0..724613e 100644 --- a/Lidgren.Network/NetConnection.Handshake.cs +++ b/Lidgren.Network/NetConnection.Handshake.cs @@ -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;