Jeff;830782 said:This still has the potential of failing, You should manually force the Flush.
i'll write results asa i'll put new fixes
@PitHelvit: there is no reason to repeat all that code
Code:
else if ( cmd == 0xFF )
{
string statStr = String.Format( ", Name={0}, Age={1}, Clients={2}, Items={3}, Chars={4}, Mem={5}K", Server.Misc.ServerList.ServerName, (int)(DateTime.Now-Server.Items.Clock.ServerStart).TotalHours, NetState.Instances.Count, World.Items.Count, World.Mobiles.Count, (int)(System.GC.GetTotalMemory(false)/1024) );
state.Send( new UOGInfo( statStr ) );
#if MONO
state.Flush();
DelayedDisconnect(state);
#else
state.Dispose();
#endif
}