From e4c7bdc730ab2d550b8c308841049224c0cbddf6 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 30 Dec 2008 20:48:31 +0000 Subject: * Remove mono compiler warnings * Leaving the 23 warnings in ChildAgentDataUpdate.cs for Diva to look at --- .../Modules/Communications/REST/RESTInterregionComms.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Environment/Modules/Communications/REST/RESTInterregionComms.cs') diff --git a/OpenSim/Region/Environment/Modules/Communications/REST/RESTInterregionComms.cs b/OpenSim/Region/Environment/Modules/Communications/REST/RESTInterregionComms.cs index 77aad6b..92c9463 100644 --- a/OpenSim/Region/Environment/Modules/Communications/REST/RESTInterregionComms.cs +++ b/OpenSim/Region/Environment/Modules/Communications/REST/RESTInterregionComms.cs @@ -191,7 +191,8 @@ namespace OpenSim.Region.Environment.Modules.Communications.REST os.Close(); //m_log.InfoFormat("[REST COMMS]: Posted ChildAgentUpdate request to remote sim {0}", uri); } - catch (WebException ex) + //catch (WebException ex) + catch { //m_log.InfoFormat("[REST COMMS]: Bad send on ChildAgentUpdate {0}", ex.Message); @@ -200,7 +201,7 @@ namespace OpenSim.Region.Environment.Modules.Communications.REST // Let's wait for the response //m_log.Info("[REST COMMS]: Waiting for a reply after ChildAgentUpdate"); - string reply = null; + try { WebResponse webResponse = ChildUpdateRequest.GetResponse(); @@ -210,7 +211,8 @@ namespace OpenSim.Region.Environment.Modules.Communications.REST } StreamReader sr = new StreamReader(webResponse.GetResponseStream()); - reply = sr.ReadToEnd().Trim(); + //reply = sr.ReadToEnd().Trim(); + sr.ReadToEnd().Trim(); sr.Close(); //m_log.InfoFormat("[REST COMMS]: ChilAgentUpdate reply was {0} ", reply); -- cgit v1.1