aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/RegionCommsListener.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/RegionCommsListener.cs')
-rw-r--r--OpenSim/Framework/RegionCommsListener.cs14
1 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/Framework/RegionCommsListener.cs b/OpenSim/Framework/RegionCommsListener.cs
index 1db5aae..c12c3df 100644
--- a/OpenSim/Framework/RegionCommsListener.cs
+++ b/OpenSim/Framework/RegionCommsListener.cs
@@ -45,6 +45,7 @@ namespace OpenSim.Framework
45 public event CloseAgentConnection OnCloseAgentConnection; 45 public event CloseAgentConnection OnCloseAgentConnection;
46 public event RegionUp OnRegionUp; 46 public event RegionUp OnRegionUp;
47 public event ChildAgentUpdate OnChildAgentUpdate; 47 public event ChildAgentUpdate OnChildAgentUpdate;
48
48 49
49 50
50 public string debugRegionName = String.Empty; 51 public string debugRegionName = String.Empty;
@@ -139,12 +140,15 @@ namespace OpenSim.Framework
139 return false; 140 return false;
140 } 141 }
141 142
142 public virtual void TriggerCloseAgentConnection(ulong regionHandle, LLUUID agentID) 143 public virtual bool TriggerCloseAgentConnection(ulong regionHandle, LLUUID agentID)
143 { 144 {
144 if (OnCloseAgentConnection != null) 145 if (OnCloseAgentConnection != null)
145 { 146 {
146 OnCloseAgentConnection(regionHandle, agentID); 147 OnCloseAgentConnection(regionHandle, agentID);
148 return true;
149
147 } 150 }
151 return false;
148 } 152 }
149 153
150 /// <summary> 154 /// <summary>
@@ -179,5 +183,13 @@ namespace OpenSim.Framework
179 183
180 return false; 184 return false;
181 } 185 }
186
187 public bool TriggerTellRegionToCloseChildConnection(ulong regionHandle, LLUUID agentID)
188 {
189 if (OnCloseAgentConnection != null)
190 return OnCloseAgentConnection(regionHandle, agentID);
191
192 return false;
193 }
182 } 194 }
183} \ No newline at end of file 195} \ No newline at end of file