aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications/Local/LocalBackEndServices.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Communications/Local/LocalBackEndServices.cs29
1 files changed, 15 insertions, 14 deletions
diff --git a/OpenSim/Region/Communications/Local/LocalBackEndServices.cs b/OpenSim/Region/Communications/Local/LocalBackEndServices.cs
index 0f3ec73..17989d4 100644
--- a/OpenSim/Region/Communications/Local/LocalBackEndServices.cs
+++ b/OpenSim/Region/Communications/Local/LocalBackEndServices.cs
@@ -194,34 +194,35 @@ namespace OpenSim.Region.Communications.Local
194 return mapBlocks; 194 return mapBlocks;
195 } 195 }
196 196
197 /// <summary> 197
198 /// </summary> 198 public bool RegionUp(SearializableRegionInfo sregion, ulong regionhandle)
199 /// <param name="regionHandle"></param>
200 /// <param name="agentData"></param>
201 /// <returns></returns>
202 ///
203 public bool RegionUp(SearializableRegionInfo sregion)
204 { 199 {
205 RegionInfo region = new RegionInfo(sregion); 200 RegionInfo region = new RegionInfo(sregion);
206 foreach (RegionCommsListener listener in m_regionListeners.Values) 201 if (m_regionListeners.ContainsKey(regionhandle))
207 { 202 {
208 listener.TriggerRegionUp(region); 203 return m_regionListeners[regionhandle].TriggerRegionUp(region);
209 } 204 }
210 205
211 return false; 206 return false;
212 } 207 }
213 208
214 public bool TriggerRegionUp(RegionInfo region) 209 public bool TriggerRegionUp(RegionInfo region, ulong regionhandle)
215 { 210 {
216 211
217 foreach (RegionCommsListener listener in m_regionListeners.Values) 212 if (m_regionListeners.ContainsKey(regionhandle))
218 { 213 {
219 listener.TriggerRegionUp(region); 214 return m_regionListeners[regionhandle].TriggerRegionUp(region);
220 } 215 }
221 216
222 return true; 217 return false;
223 } 218 }
224 219
220 /// <summary>
221 /// </summary>
222 /// <param name="regionHandle"></param>
223 /// <param name="agentData"></param>
224 /// <returns></returns>
225 ///
225 public bool InformRegionOfChildAgent(ulong regionHandle, AgentCircuitData agentData) 226 public bool InformRegionOfChildAgent(ulong regionHandle, AgentCircuitData agentData)
226 //should change from agentCircuitData 227 //should change from agentCircuitData
227 { 228 {