Get the local inner simulation service object to the handler so that there is no possibility of cascading requests when failures happen.
parent
76106e39d9
commit
45ef3e9987
|
@ -166,6 +166,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
|
||||||
return m_sceneList[0];
|
return m_sceneList[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ISimulationService GetInnerService()
|
||||||
|
{
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Agent-related communications
|
* Agent-related communications
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -156,6 +156,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
|
||||||
return m_localBackend.GetScene(handle);
|
return m_localBackend.GetScene(handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ISimulationService GetInnerService()
|
||||||
|
{
|
||||||
|
return m_localBackend;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Agent-related communications
|
* Agent-related communications
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -55,6 +55,7 @@ namespace OpenSim.Server.Handlers.Simulation
|
||||||
|
|
||||||
//Object[] args = new Object[] { config };
|
//Object[] args = new Object[] { config };
|
||||||
m_LocalSimulationService = scene.RequestModuleInterface<ISimulationService>();
|
m_LocalSimulationService = scene.RequestModuleInterface<ISimulationService>();
|
||||||
|
m_LocalSimulationService = m_LocalSimulationService.GetInnerService();
|
||||||
//ServerUtils.LoadPlugin<ISimulationService>(simService, args);
|
//ServerUtils.LoadPlugin<ISimulationService>(simService, args);
|
||||||
|
|
||||||
//System.Console.WriteLine("XXXXXXXXXXXXXXXXXXX m_AssetSetvice == null? " + ((m_AssetService == null) ? "yes" : "no"));
|
//System.Console.WriteLine("XXXXXXXXXXXXXXXXXXX m_AssetSetvice == null? " + ((m_AssetService == null) ? "yes" : "no"));
|
||||||
|
|
|
@ -63,6 +63,11 @@ namespace OpenSim.Services.Connectors.Simulation
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ISimulationService GetInnerService()
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
#region Agents
|
#region Agents
|
||||||
|
|
||||||
protected virtual string AgentPath()
|
protected virtual string AgentPath()
|
||||||
|
|
|
@ -36,6 +36,7 @@ namespace OpenSim.Services.Interfaces
|
||||||
public interface ISimulationService
|
public interface ISimulationService
|
||||||
{
|
{
|
||||||
IScene GetScene(ulong regionHandle);
|
IScene GetScene(ulong regionHandle);
|
||||||
|
ISimulationService GetInnerService();
|
||||||
|
|
||||||
#region Agents
|
#region Agents
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue