fixed dumb timer issue

This commit is contained in:
mark 2007-08-28 00:24:41 +00:00
parent 2533ee486a
commit 56f53b0f74

View file

@ -316,7 +316,7 @@ namespace Server
} }
} }
private static AutoResetEvent m_Signal = new AutoResetEvent( true ); private static AutoResetEvent m_Signal = new AutoResetEvent( false );
public static void Set() { m_Signal.Set(); } public static void Set() { m_Signal.Set(); }
public void TimerMain() public void TimerMain()
@ -325,7 +325,7 @@ namespace Server
int i, j; int i, j;
bool loaded; bool loaded;
while ( m_Signal.WaitOne( 10, false ) && !Core.Closing ) while ( !Core.Closing )
{ {
ProcessChangeQueue(); ProcessChangeQueue();
@ -367,6 +367,8 @@ namespace Server
if ( loaded ) if ( loaded )
Core.Set(); Core.Set();
} }
m_Signal.WaitOne( 10, false );
} }
} }