Fix for disconnect showing 1 too many users online.
I have noticed that when a user disconnects from the shard it always shows 1 more user online than there is after the disconnect. This is an easy fix:
On line 721 and 723 in Netstate.cs (from the core) is where these messages are displayed. Replace this:
With this:
I have noticed that when a user disconnects from the shard it always shows 1 more user online than there is after the disconnect. This is an easy fix:
On line 721 and 723 in Netstate.cs (from the core) is where these messages are displayed. Replace this:
Code:
if ( ns.m_Account != null )
Console.WriteLine( "Client: {0}: Disconnected. [{1} Online] [{2}]", ns, m_Instances.Count, ns.m_Account );
else
Console.WriteLine( "Client: {0}: Disconnected. [{1} Online]", ns, m_Instances.Count );
With this:
Code:
if ( ns.m_Account != null )
Console.WriteLine( "Client: {0}: Disconnected. [{1} Online] [{2}]", ns, (m_Instances.Count - 1), ns.m_Account );
else
Console.WriteLine( "Client: {0}: Disconnected. [{1} Online]", ns, (m_Instances.Count - 1) );