From 0880abc402b0f94c7661bbf646a4afa3faaeccce Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Tue, 29 Apr 2008 19:10:15 +0000 Subject: * Disabled IntergridModule until a Mono bug can be isolated. --- .../Interregion/InterregionModule.cs | 29 ++++++++++++++-------- 1 file changed, 18 insertions(+), 11 deletions(-) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/Modules/Communications/Interregion/InterregionModule.cs b/OpenSim/Region/Environment/Modules/Communications/Interregion/InterregionModule.cs index b76a754..8d040c4 100644 --- a/OpenSim/Region/Environment/Modules/Communications/Interregion/InterregionModule.cs +++ b/OpenSim/Region/Environment/Modules/Communications/Interregion/InterregionModule.cs @@ -39,31 +39,38 @@ namespace OpenSim.Region.Environment.Modules.Communications.Interregion private Object m_lockObject = new object(); private TcpChannel m_tcpChannel; private int m_tcpPort = 10101; + private bool m_enabled = false; #region IRegionModule Members //TODO: This prevents us from registering new scenes after PostInitialise if we want comms updated. public void Initialise(Scene scene, IConfigSource source) { - m_myLocations.Add(new Location((int) scene.RegionInfo.RegionLocX, - (int) scene.RegionInfo.RegionLocY)); - m_config = source; + if (m_enabled) + { + m_myLocations.Add(new Location((int) scene.RegionInfo.RegionLocX, + (int) scene.RegionInfo.RegionLocY)); + m_config = source; - scene.RegisterModuleInterface(this); + scene.RegisterModuleInterface(this); + } } //TODO: This prevents us from registering new scenes after PostInitialise if we want comms updated. public void PostInitialise() { - try - { - m_tcpPort = m_config.Configs["Comms"].GetInt("remoting_port", m_tcpPort); - } - catch + if (m_enabled) { - } + try + { + m_tcpPort = m_config.Configs["Comms"].GetInt("remoting_port", m_tcpPort); + } + catch + { + } - internal_CreateRemotingObjects(); + internal_CreateRemotingObjects(); + } } public void Close() -- cgit v1.1