Add m_threads dictionary locking to Watchdog.GetThreads()
parent
6a74a4c12b
commit
e549f2f443
|
@ -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