change wrong watchdog stopped thread check code, and don't log it

This commit is contained in:
UbitUmarov
2017-05-26 00:05:35 +01:00
parent 31b4a31246
commit d90b68c2a6
2 changed files with 10 additions and 5 deletions

View File

@@ -511,8 +511,6 @@ 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,