aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
index 473a01c..988d859 100644
--- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
@@ -155,7 +155,8 @@ namespace OpenSim.Framework.Servers.HttpServer
155 155
156 public List<string> GetStreamHandlerKeys() 156 public List<string> GetStreamHandlerKeys()
157 { 157 {
158 return new List<string>(m_streamHandlers.Keys); 158 lock (m_streamHandlers)
159 return new List<string>(m_streamHandlers.Keys);
159 } 160 }
160 161
161 private static string GetHandlerKey(string httpMethod, string path) 162 private static string GetHandlerKey(string httpMethod, string path)
@@ -1793,7 +1794,8 @@ namespace OpenSim.Framework.Servers.HttpServer
1793 1794
1794 //m_log.DebugFormat("[BASE HTTP SERVER]: Removing handler key {0}", handlerKey); 1795 //m_log.DebugFormat("[BASE HTTP SERVER]: Removing handler key {0}", handlerKey);
1795 1796
1796 lock (m_streamHandlers) m_streamHandlers.Remove(handlerKey); 1797 lock (m_streamHandlers)
1798 m_streamHandlers.Remove(handlerKey);
1797 } 1799 }
1798 1800
1799 public void RemoveHTTPHandler(string httpMethod, string path) 1801 public void RemoveHTTPHandler(string httpMethod, string path)