oops, fix build break from last commit

bulletsim
Justin Clark-Casey (justincc) 2011-08-22 02:10:45 +01:00
parent 9469c62098
commit c587b0a3a3
1 changed files with 8 additions and 12 deletions

View File

@ -56,7 +56,6 @@ namespace OpenSim.Framework.Servers.HttpServer
private volatile int NotSocketErrors = 0;
public volatile bool HTTPDRunning = false;
protected Thread m_workerThread;
// protected HttpListener m_httpListener;
protected CoolHTTPListener m_httpListener2;
protected Dictionary<string, XmlRpcMethod> m_rpcHandlers = new Dictionary<string, XmlRpcMethod>();
@ -243,6 +242,7 @@ namespace OpenSim.Framework.Servers.HttpServer
public List<string> GetPollServiceHandlerKeys()
{
lock (m_pollHandlers)
return new List<string>(m_pollHandlers.Keys);
}
@ -1823,21 +1823,17 @@ namespace OpenSim.Framework.Servers.HttpServer
}
public bool RemoveAgentHandler(string agent, IHttpAgentHandler handler)
{
try
{
lock (m_agentHandlers)
{
if (handler == m_agentHandlers[agent])
IHttpAgentHandler foundHandler;
if (m_agentHandlers.TryGetValue(agent, out foundHandler) && foundHandler == handler)
{
m_agentHandlers.Remove(agent);
return true;
}
}
}
catch(KeyNotFoundException)
{
}
return false;
}