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

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.
This commit is contained in:
Laurent Giroud
2019-02-20 14:54:07 -05:00
parent d3458db59c
commit 14d15b0f9c

View File

@@ -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