diff options
-rw-r--r-- | OpenSim/Framework/Watchdog.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Framework/Watchdog.cs b/OpenSim/Framework/Watchdog.cs index c947ea6..3ef9ccb 100644 --- a/OpenSim/Framework/Watchdog.cs +++ b/OpenSim/Framework/Watchdog.cs | |||
@@ -178,7 +178,8 @@ namespace OpenSim.Framework | |||
178 | /// <returns></returns> | 178 | /// <returns></returns> |
179 | public static ThreadWatchdogInfo[] GetThreads() | 179 | public static ThreadWatchdogInfo[] GetThreads() |
180 | { | 180 | { |
181 | return m_threads.Values.ToArray(); | 181 | lock (m_threads) |
182 | return m_threads.Values.ToArray(); | ||
182 | } | 183 | } |
183 | 184 | ||
184 | private static void WatchdogTimerElapsed(object sender, System.Timers.ElapsedEventArgs e) | 185 | private static void WatchdogTimerElapsed(object sender, System.Timers.ElapsedEventArgs e) |