aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Watchdog.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Watchdog.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Framework/Watchdog.cs b/OpenSim/Framework/Watchdog.cs
index e26a6f2..4847675 100644
--- a/OpenSim/Framework/Watchdog.cs
+++ b/OpenSim/Framework/Watchdog.cs
@@ -126,8 +126,7 @@ namespace OpenSim.Framework
126 thread.Name = name; 126 thread.Name = name;
127 thread.Priority = priority; 127 thread.Priority = priority;
128 thread.IsBackground = isBackground; 128 thread.IsBackground = isBackground;
129 thread.Start(); 129
130
131 ThreadWatchdogInfo twi = new ThreadWatchdogInfo(thread, timeout); 130 ThreadWatchdogInfo twi = new ThreadWatchdogInfo(thread, timeout);
132 131
133 m_log.Debug("[WATCHDOG]: Started tracking thread \"" + twi.Thread.Name + "\" (ID " + twi.Thread.ManagedThreadId + ")"); 132 m_log.Debug("[WATCHDOG]: Started tracking thread \"" + twi.Thread.Name + "\" (ID " + twi.Thread.ManagedThreadId + ")");
@@ -135,6 +134,8 @@ namespace OpenSim.Framework
135 lock (m_threads) 134 lock (m_threads)
136 m_threads.Add(twi.Thread.ManagedThreadId, twi); 135 m_threads.Add(twi.Thread.ManagedThreadId, twi);
137 136
137 thread.Start();
138
138 return thread; 139 return thread;
139 } 140 }
140 141