fix bad side efects of missing avination optional configuration

avinationmerge
UbitUmarov 2015-09-15 21:33:26 +01:00
parent 42954349e4
commit 19c5f9ce1d
1 changed files with 16 additions and 11 deletions

View File

@ -139,6 +139,9 @@ namespace OpenSim.Services.Connectors
private string MapServer(string id) private string MapServer(string id)
{ {
if (m_UriMap.Count == 0)
return m_ServerURI;
UriBuilder serverUri = new UriBuilder(m_ServerURI); UriBuilder serverUri = new UriBuilder(m_ServerURI);
string prefix = id.Substring(0, 2).ToLower(); string prefix = id.Substring(0, 2).ToLower();
@ -164,7 +167,9 @@ namespace OpenSim.Services.Connectors
protected void retryCheck(object source, ElapsedEventArgs e) protected void retryCheck(object source, ElapsedEventArgs e)
{ {
m_retryCounter++; m_retryCounter++;
if (m_retryCounter > 60) m_retryCounter -= 60; if (m_retryCounter > 60)
m_retryCounter -= 60;
List<int> keys = new List<int>(); List<int> keys = new List<int>();
foreach (int a in m_retryQueue.Keys) foreach (int a in m_retryQueue.Keys)
{ {
@ -282,8 +287,8 @@ namespace OpenSim.Services.Connectors
rc.RequestMethod = "GET"; rc.RequestMethod = "GET";
Stream s = rc.Request(m_Auth); using (Stream s = rc.Request(m_Auth))
{
if (s == null) if (s == null)
return null; return null;
@ -294,7 +299,7 @@ namespace OpenSim.Services.Connectors
return ret; return ret;
} }
}
return null; return null;
} }
} }