HG: close a loophole by which if something was wrong with the ServiceURLs it resulted in never ending asset requests

This commit is contained in:
Diva Canto
2013-07-02 13:29:44 -07:00
parent 635704b7ef
commit ccca005969
3 changed files with 11 additions and 2 deletions

View File

@@ -421,7 +421,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
// foreign user is visiting, we need to try again after the first fail to the local
// asset service.
string assetServerURL = string.Empty;
if (InventoryAccessModule.IsForeignUser(AgentID, out assetServerURL))
if (InventoryAccessModule.IsForeignUser(AgentID, out assetServerURL) && !string.IsNullOrEmpty(assetServerURL))
{
if (!assetServerURL.EndsWith("/") && !assetServerURL.EndsWith("="))
assetServerURL = assetServerURL + "/";