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,6 +178,7 @@ namespace OpenSim.Framework
/// <returns></returns> /// <returns></returns>
public static ThreadWatchdogInfo[] GetThreads() public static ThreadWatchdogInfo[] GetThreads()
{ {
lock (m_threads)
return m_threads.Values.ToArray(); return m_threads.Values.ToArray();
} }