Don't allow a failure in create a request in HeloService.Connector.Helo() to propogate up the stack.

Relates to http://opensimulator.org/mantis/view.php?id=7421
0.8.1-post-fixes
Justin Clark-Casey (justincc) 2015-01-21 20:46:29 +00:00
parent 155da5aad2
commit ed8d0fbea4
1 changed files with 5 additions and 5 deletions

View File

@ -84,16 +84,16 @@ namespace OpenSim.Services.Connectors
{ {
if (String.IsNullOrEmpty(m_ServerURI)) if (String.IsNullOrEmpty(m_ServerURI))
{ {
m_log.WarnFormat("[HELO SERVICE]: Unable to invoke HELO due to malformed URL"); m_log.WarnFormat("[HELO SERVICE]: Unable to invoke HELO due to empty URL");
return String.Empty; return String.Empty;
} }
try
{
HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(m_ServerURI); HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(m_ServerURI);
// Eventually we need to switch to HEAD // Eventually we need to switch to HEAD
/* req.Method = "HEAD"; */ /* req.Method = "HEAD"; */
try
{
using (WebResponse response = req.GetResponse()) using (WebResponse response = req.GetResponse())
{ {
if (response.Headers.Get("X-Handlers-Provided") == null) // just in case this ever returns a null if (response.Headers.Get("X-Handlers-Provided") == null) // just in case this ever returns a null