From e1e2622e923e1e68af710066dc28384660246c9f Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 4 Nov 2008 21:35:12 +0000 Subject: [PATCH] * Stop an exception in the thread tracker cleanup loop from terminating the sim --- OpenSim/Framework/ThreadTracker.cs | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/OpenSim/Framework/ThreadTracker.cs b/OpenSim/Framework/ThreadTracker.cs index 984acfa752..0a63239482 100644 --- a/OpenSim/Framework/ThreadTracker.cs +++ b/OpenSim/Framework/ThreadTracker.cs @@ -52,12 +52,21 @@ namespace OpenSim.Framework } private static void ThreadTrackerThreadLoop() - { - while (true) + { + try { - Thread.Sleep(5000); - CleanUp(); + while (true) + { + Thread.Sleep(5000); + CleanUp(); + } } + catch (Exception e) + { + m_log.ErrorFormat( + "[THREAD TRACKER]: Thread tracker cleanup thread terminating with exception. Please report this error. Exception is {0}", + e); + } } public static void Add(Thread thread)