* Deal with a WebException thrown if a grid server cannot be contacted for region information

This commit is contained in:
Justin Clarke Casey
2008-08-25 21:26:58 +00:00
parent 24456e846c
commit 7402c2d288
3 changed files with 26 additions and 7 deletions

View File

@@ -2897,12 +2897,14 @@ namespace OpenSim.Region.Environment.Scenes
public void RequestTeleportLandmark(IClientAPI remoteClient, LLUUID regionID, LLVector3 position)
{
RegionInfo info = CommsManager.GridService.RequestNeighbourInfo(regionID);
if (info == null)
{
// can't find the region: Tell viewer and abort
remoteClient.SendTeleportFailed("The teleport destination could not be found.");
return;
}
lock (m_scenePresences)
{
if (m_scenePresences.ContainsKey(remoteClient.AgentId))