diff options
author | Teravus Ovares | 2008-01-21 23:04:42 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-01-21 23:04:42 +0000 |
commit | 3fe6b2280d0b335ef8d9f2b0dc3406a47e6c0b53 (patch) | |
tree | bb8cbf0b5918448c92f6b0f42fec5013450d7e25 /OpenSim/Framework/RegionCommsListener.cs | |
parent | Another attempt to squash the animation bug. Wish I could get this to fail at... (diff) | |
download | opensim-SC_OLD-3fe6b2280d0b335ef8d9f2b0dc3406a47e6c0b53.zip opensim-SC_OLD-3fe6b2280d0b335ef8d9f2b0dc3406a47e6c0b53.tar.gz opensim-SC_OLD-3fe6b2280d0b335ef8d9f2b0dc3406a47e6c0b53.tar.bz2 opensim-SC_OLD-3fe6b2280d0b335ef8d9f2b0dc3406a47e6c0b53.tar.xz |
* Shutting down child agents properly in neighbor regions.
Diffstat (limited to 'OpenSim/Framework/RegionCommsListener.cs')
-rw-r--r-- | OpenSim/Framework/RegionCommsListener.cs | 14 |
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 |