From 14d15b0f9c9eaf3757c75280c16118daad445cf0 Mon Sep 17 00:00:00 2001 From: Laurent Giroud Date: Wed, 20 Feb 2019 14:54:07 -0500 Subject: [PATCH] Fix: Connection.Connect() now correctly updates the Connection.Status property when needed. Previously, it would never update it, even when users had opted to not receive status update change messages. It now properly calls SetStatus() instead of modifying the m_status field directly. --- Lidgren.Network/NetPeer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lidgren.Network/NetPeer.cs b/Lidgren.Network/NetPeer.cs index a7f2bba..737015c 100644 --- a/Lidgren.Network/NetPeer.cs +++ b/Lidgren.Network/NetPeer.cs @@ -335,7 +335,7 @@ namespace Lidgren.Network } NetConnection conn = new NetConnection(this, remoteEndPoint); - conn.m_status = NetConnectionStatus.InitiatedConnect; + conn.SetStatus(NetConnectionStatus.InitiatedConnect, "user called connect"); conn.m_localHailMessage = hailMessage; // handle on network thread