fixed dumb timer issue
This commit is contained in:
parent
2533ee486a
commit
56f53b0f74
1 changed files with 4 additions and 2 deletions
|
|
@ -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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue