diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs index bd4a23b..68be552 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs | |||
@@ -260,6 +260,21 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation | |||
260 | return false; | 260 | return false; |
261 | } | 261 | } |
262 | 262 | ||
263 | public bool CloseChildAgent(GridRegion destination, UUID id) | ||
264 | { | ||
265 | if (destination == null) | ||
266 | return false; | ||
267 | |||
268 | // Try local first | ||
269 | if (m_localBackend.CloseChildAgent(destination, id)) | ||
270 | return true; | ||
271 | |||
272 | // else do the remote thing | ||
273 | if (!m_localBackend.IsLocalRegion(destination.RegionHandle)) | ||
274 | return m_remoteConnector.CloseChildAgent(destination, id); | ||
275 | |||
276 | return false; | ||
277 | } | ||
263 | 278 | ||
264 | public bool CloseAgent(GridRegion destination, UUID id) | 279 | public bool CloseAgent(GridRegion destination, UUID id) |
265 | { | 280 | { |