Add m_threads dictionary locking to Watchdog.GetThreads()

remove-scene-viewer
Justin Clark-Casey (justincc) 2011-10-25 22:51:23 +01:00
parent 6a74a4c12b
commit e549f2f443
1 changed files with 2 additions and 1 deletions

View File

@ -178,7 +178,8 @@ namespace OpenSim.Framework
/// <returns></returns>
public static ThreadWatchdogInfo[] GetThreads()
{
return m_threads.Values.ToArray();
lock (m_threads)
return m_threads.Values.ToArray();
}
private static void WatchdogTimerElapsed(object sender, System.Timers.ElapsedEventArgs e)