Add m_threads dictionary locking to Watchdog.GetThreads()
parent
6c92b48143
commit
70d559d1af
|
@ -178,7 +178,8 @@ namespace OpenSim.Framework
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static ThreadWatchdogInfo[] GetThreads()
|
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)
|
private static void WatchdogTimerElapsed(object sender, System.Timers.ElapsedEventArgs e)
|
||||||
|
|
Loading…
Reference in New Issue