0.9.1.0-post-fixes
UbitUmarov 2018-12-01 23:18:48 +00:00
parent 8c80572b02
commit 9cb0c51483
1 changed files with 11 additions and 10 deletions

View File

@ -116,24 +116,25 @@ namespace OpenSim.Region.CoreModules.Framework
//m_log.DebugFormat("[SERVICE THROTTLE]: RegionHandleRequest {0}", regionID);
Action action = delegate
{
if(!client.IsActive)
return;
if(m_scenes.Count == 0)
if(!client.IsActive || m_scenes.Count == 0 || m_scenes[0] == null )
{
client = null;
return;
}
Scene baseScene = m_scenes[0];
if(baseScene == null || baseScene.ShuttingDown)
if(baseScene.ShuttingDown)
{
client = null;
return;
}
GridRegion r = baseScene.GridService.GetRegionByUUID(UUID.Zero, regionID);
if(!client.IsActive)
return;
if (r != null && r.RegionHandle != 0)
if (client.IsActive && r != null && r.RegionHandle != 0)
client.SendRegionHandle(regionID, r.RegionHandle);
client = null;
};
m_processorJobEngine.QueueJob("regionHandle", action, regionID.ToString());