From b077723a201428de54fb4e68eabf7f2cd66c7cca Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 5 Jan 2009 20:58:57 +0000 Subject: * minor: remove some mono compiler warnings --- OpenSim/Framework/Servers/BaseHttpServer.cs | 2 +- .../Modules/Communications/REST/RESTInterregionComms.cs | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs index ea356ac..f69fb5e 100644 --- a/OpenSim/Framework/Servers/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/BaseHttpServer.cs @@ -50,7 +50,7 @@ namespace OpenSim.Framework.Servers private HttpServerLogWriter httpserverlog = new HttpServerLogWriter(); private volatile int NotSocketErrors = 0; - private volatile bool HTTPDRunning = false; + public volatile bool HTTPDRunning = false; protected Thread m_workerThread; protected HttpListener m_httpListener; diff --git a/OpenSim/Region/Environment/Modules/Communications/REST/RESTInterregionComms.cs b/OpenSim/Region/Environment/Modules/Communications/REST/RESTInterregionComms.cs index 3e8599b..4daaab4 100644 --- a/OpenSim/Region/Environment/Modules/Communications/REST/RESTInterregionComms.cs +++ b/OpenSim/Region/Environment/Modules/Communications/REST/RESTInterregionComms.cs @@ -642,13 +642,11 @@ namespace OpenSim.Region.Environment.Modules.Communications.REST protected virtual void DoDelete(Hashtable request, Hashtable responsedata, UUID id, string action, ulong regionHandle) { //Console.WriteLine(" >>> DoDelete action:" + action + "; regionHandle:" + regionHandle); - bool result = true; + if (action.Equals("release")) - { - result = m_localBackend.SendReleaseAgent(regionHandle, id, ""); - } + m_localBackend.SendReleaseAgent(regionHandle, id, ""); else - result = m_localBackend.SendCloseAgent(regionHandle, id); + m_localBackend.SendCloseAgent(regionHandle, id); responsedata["int_response_code"] = 200; responsedata["str_response_string"] = "OpenSim agent " + id.ToString(); -- cgit v1.1