mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 13:55:35 +08:00
improve locking of m_streamHandlers in BaseHttpServer
This commit is contained in:
@@ -155,7 +155,8 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
|
||||
public List<string> GetStreamHandlerKeys()
|
||||
{
|
||||
return new List<string>(m_streamHandlers.Keys);
|
||||
lock (m_streamHandlers)
|
||||
return new List<string>(m_streamHandlers.Keys);
|
||||
}
|
||||
|
||||
private static string GetHandlerKey(string httpMethod, string path)
|
||||
@@ -1793,7 +1794,8 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
|
||||
//m_log.DebugFormat("[BASE HTTP SERVER]: Removing handler key {0}", handlerKey);
|
||||
|
||||
lock (m_streamHandlers) m_streamHandlers.Remove(handlerKey);
|
||||
lock (m_streamHandlers)
|
||||
m_streamHandlers.Remove(handlerKey);
|
||||
}
|
||||
|
||||
public void RemoveHTTPHandler(string httpMethod, string path)
|
||||
|
||||
Reference in New Issue
Block a user