From 07e614a32c79b9295b162119d95ab1770243a8cc Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 23 May 2017 06:38:19 +0100 Subject: [PATCH] dont log timeouts on stopped threads --- OpenSim/Region/Application/OpenSim.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index f9f103aa9e..524f2be10b 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs @@ -504,7 +504,8 @@ namespace OpenSim private void WatchdogTimeoutHandler(Watchdog.ThreadWatchdogInfo twi) { int now = Environment.TickCount & Int32.MaxValue; - + if(twi.Thread.ThreadState == System.Threading.ThreadState.Stopped) + return; m_log.ErrorFormat( "[WATCHDOG]: Timeout detected for thread \"{0}\". ThreadState={1}. Last tick was {2}ms ago. {3}", twi.Thread.Name,