diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs index c9cc368..f485cd1 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs | |||
@@ -245,18 +245,15 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation | |||
245 | 245 | ||
246 | } | 246 | } |
247 | 247 | ||
248 | public bool ReleaseAgent(GridRegion destination, UUID id, string uri) | 248 | public bool ReleaseAgent(UUID origin, UUID id, string uri) |
249 | { | 249 | { |
250 | if (destination == null) | ||
251 | return false; | ||
252 | |||
253 | // Try local first | 250 | // Try local first |
254 | if (m_localBackend.ReleaseAgent(destination, id, uri)) | 251 | if (m_localBackend.ReleaseAgent(origin, id, uri)) |
255 | return true; | 252 | return true; |
256 | 253 | ||
257 | // else do the remote thing | 254 | // else do the remote thing |
258 | if (!m_localBackend.IsLocalRegion(destination.RegionHandle)) | 255 | if (!m_localBackend.IsLocalRegion(origin)) |
259 | return m_remoteConnector.ReleaseAgent(destination, id, uri); | 256 | return m_remoteConnector.ReleaseAgent(origin, id, uri); |
260 | 257 | ||
261 | return false; | 258 | return false; |
262 | } | 259 | } |