improve locking of m_HTTPHandlers in BaseHttpServer

This commit is contained in:
Justin Clark-Casey (justincc)
2011-08-22 01:59:40 +01:00
parent 5a11cffd23
commit f9a367e2f6

View File

@@ -220,10 +220,10 @@ namespace OpenSim.Framework.Servers.HttpServer
public List<string> GetHTTPHandlerKeys()
{
return new List<string>(m_HTTPHandlers.Keys);
lock (m_HTTPHandlers)
return new List<string>(m_HTTPHandlers.Keys);
}
public bool AddPollServiceHTTPHandler(string methodName, GenericHTTPMethod handler, PollServiceEventArgs args)
{
bool pollHandlerResult = false;