mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Add m_threads dictionary locking to Watchdog.GetThreads()
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user