aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Framework/Servers/BaseOpenSimServer.cs20
1 files changed, 17 insertions, 3 deletions
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
index f5e5c18..499b2f8 100644
--- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs
+++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
@@ -141,9 +141,23 @@ namespace OpenSim.Framework.Servers
141 sb.Append(threads.Count + " threads are being tracked:" + Environment.NewLine); 141 sb.Append(threads.Count + " threads are being tracked:" + Environment.NewLine);
142 foreach (Thread t in threads) 142 foreach (Thread t in threads)
143 { 143 {
144 sb.Append( 144 if (t.IsAlive)
145 "ID: " + t.ManagedThreadId + ", Name: " + t.Name + ", Alive: " + t.IsAlive 145 {
146 + ", Pri: " + t.Priority + ", State: " + t.ThreadState + Environment.NewLine); 146 sb.Append(
147 "ID: " + t.ManagedThreadId + ", Name: " + t.Name + ", Alive: " + t.IsAlive
148 + ", Pri: " + t.Priority + ", State: " + t.ThreadState + Environment.NewLine);
149 }
150 else
151 {
152 try
153 {
154 sb.Append("ID: " + t.ManagedThreadId + ", Name: " + t.Name + ", DEAD" + Environment.NewLine);
155 }
156 catch (Exception e)
157 {
158 sb.Append("THREAD ERROR" + Environment.NewLine);
159 }
160 }
147 } 161 }
148 } 162 }
149 163