aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMic Bowman2013-07-31 11:31:03 -0700
committerMic Bowman2013-07-31 11:31:03 -0700
commit48ee440983222872641c77bfbedf253fa0e4edd4 (patch)
tree205ceb7e4db96ac8316ae512f3e53c723f4260bc /OpenSim
parentA pretty major restructuring of the simian method invocations in order to (diff)
parentHGWorldMapModule: unregister event on RemoveRegion (diff)
downloadopensim-SC_OLD-48ee440983222872641c77bfbedf253fa0e4edd4.zip
opensim-SC_OLD-48ee440983222872641c77bfbedf253fa0e4edd4.tar.gz
opensim-SC_OLD-48ee440983222872641c77bfbedf253fa0e4edd4.tar.bz2
opensim-SC_OLD-48ee440983222872641c77bfbedf253fa0e4edd4.tar.xz
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs17
1 files changed, 16 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs b/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs
index a2aee08..97227b3 100644
--- a/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs
+++ b/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs
@@ -77,13 +77,19 @@ namespace OpenSim.Region.CoreModules.Hypergrid
77 77
78 public override void AddRegion(Scene scene) 78 public override void AddRegion(Scene scene)
79 { 79 {
80 if (!m_Enabled)
81 return;
82
80 base.AddRegion(scene); 83 base.AddRegion(scene);
81 84
82 scene.EventManager.OnClientClosed += new EventManager.ClientClosed(EventManager_OnClientClosed); 85 scene.EventManager.OnClientClosed += EventManager_OnClientClosed;
83 } 86 }
84 87
85 public override void RegionLoaded(Scene scene) 88 public override void RegionLoaded(Scene scene)
86 { 89 {
90 if (!m_Enabled)
91 return;
92
87 base.RegionLoaded(scene); 93 base.RegionLoaded(scene);
88 ISimulatorFeaturesModule featuresModule = m_scene.RequestModuleInterface<ISimulatorFeaturesModule>(); 94 ISimulatorFeaturesModule featuresModule = m_scene.RequestModuleInterface<ISimulatorFeaturesModule>();
89 95
@@ -93,6 +99,15 @@ namespace OpenSim.Region.CoreModules.Hypergrid
93 m_UserManagement = m_scene.RequestModuleInterface<IUserManagement>(); 99 m_UserManagement = m_scene.RequestModuleInterface<IUserManagement>();
94 100
95 } 101 }
102
103 public override void RemoveRegion(Scene scene)
104 {
105 if (!m_Enabled)
106 return;
107
108 scene.EventManager.OnClientClosed -= EventManager_OnClientClosed;
109 }
110
96 public override string Name 111 public override string Name
97 { 112 {
98 get { return "HGWorldMap"; } 113 get { return "HGWorldMap"; }