Fix for RunUO Crash if Performance tab on Admin gump is open within first 100seconds of server running.
Completion of the DynamicSaveStrategy. Background saves are now safe; triggered only by the autoSave or command [BackgroundSave ([BGSave)
This commit is contained in:
parent
0afa707b24
commit
67af95cf0b
12 changed files with 169 additions and 84 deletions
|
|
@ -302,7 +302,7 @@ namespace Server
|
|||
if( World.Saving || ( m_Service && type == ConsoleEventType.CTRL_LOGOFF_EVENT ) )
|
||||
return true;
|
||||
|
||||
Kill();
|
||||
Kill(); //Kill -> HandleClosed will hadnle waiting for the completion of flushign to disk
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
@ -315,7 +315,7 @@ namespace Server
|
|||
private static bool m_Closing;
|
||||
public static bool Closing { get { return m_Closing; } }
|
||||
|
||||
private static long m_CycleIndex;
|
||||
private static long m_CycleIndex = 1;
|
||||
private static float[] m_CyclesPerSecond = new float[100];
|
||||
|
||||
public static float CyclesPerSecond
|
||||
|
|
@ -364,6 +364,8 @@ namespace Server
|
|||
|
||||
Console.Write( "Exiting..." );
|
||||
|
||||
World.WaitForWriteCompletion();
|
||||
|
||||
if( !m_Crashed )
|
||||
EventSink.InvokeShutdown( new ShutdownEventArgs() );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue