aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorUbitUmarov2018-12-01 23:18:48 +0000
committerUbitUmarov2018-12-01 23:18:48 +0000
commit9cb0c5148357d10c06cbdc1876e44f7d9e5553f4 (patch)
treed1c9706c4d4c5bb2be7fe5deb42afcaaa1994d2a /OpenSim
parentcomment some debug msgs (diff)
downloadopensim-SC-9cb0c5148357d10c06cbdc1876e44f7d9e5553f4.zip
opensim-SC-9cb0c5148357d10c06cbdc1876e44f7d9e5553f4.tar.gz
opensim-SC-9cb0c5148357d10c06cbdc1876e44f7d9e5553f4.tar.bz2
opensim-SC-9cb0c5148357d10c06cbdc1876e44f7d9e5553f4.tar.xz
cleanup
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/Framework/ServiceThrottle/ServiceThrottleModule.cs21
1 files changed, 11 insertions, 10 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/ServiceThrottle/ServiceThrottleModule.cs b/OpenSim/Region/CoreModules/Framework/ServiceThrottle/ServiceThrottleModule.cs
index 2c74c0e..8429f59 100644
--- a/OpenSim/Region/CoreModules/Framework/ServiceThrottle/ServiceThrottleModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/ServiceThrottle/ServiceThrottleModule.cs
@@ -116,24 +116,25 @@ namespace OpenSim.Region.CoreModules.Framework
116 //m_log.DebugFormat("[SERVICE THROTTLE]: RegionHandleRequest {0}", regionID); 116 //m_log.DebugFormat("[SERVICE THROTTLE]: RegionHandleRequest {0}", regionID);
117 Action action = delegate 117 Action action = delegate
118 { 118 {
119 if(!client.IsActive) 119 if(!client.IsActive || m_scenes.Count == 0 || m_scenes[0] == null )
120 return; 120 {
121 121 client = null;
122 if(m_scenes.Count == 0)
123 return; 122 return;
123 }
124 124
125 Scene baseScene = m_scenes[0]; 125 Scene baseScene = m_scenes[0];
126 126 if(baseScene.ShuttingDown)
127 if(baseScene == null || baseScene.ShuttingDown) 127 {
128 client = null;
128 return; 129 return;
130 }
129 131
130 GridRegion r = baseScene.GridService.GetRegionByUUID(UUID.Zero, regionID); 132 GridRegion r = baseScene.GridService.GetRegionByUUID(UUID.Zero, regionID);
131 133
132 if(!client.IsActive) 134 if (client.IsActive && r != null && r.RegionHandle != 0)
133 return;
134
135 if (r != null && r.RegionHandle != 0)
136 client.SendRegionHandle(regionID, r.RegionHandle); 135 client.SendRegionHandle(regionID, r.RegionHandle);
136
137 client = null;
137 }; 138 };
138 139
139 m_processorJobEngine.QueueJob("regionHandle", action, regionID.ToString()); 140 m_processorJobEngine.QueueJob("regionHandle", action, regionID.ToString());