Add m_threads dictionary locking to Watchdog.GetThreads()

0.7.2-post-fixes
Justin Clark-Casey (justincc) 2011-10-25 22:51:23 +01:00
parent 6c92b48143
commit 70d559d1af
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)