You've already forked lidgren-network-gen3
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user