aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs
diff options
context:
space:
mode:
authorDiva Canto2013-07-31 11:20:27 -0700
committerDiva Canto2013-07-31 11:20:27 -0700
commitac2ad9690d9e8b8988dc68cf4e2933c7b18a71bc (patch)
tree37331a1e084be9cb5b6b0020f40c3023f3eba031 /OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs
parentHGWorldMapModule: check whether it's enabled or not. (diff)
downloadopensim-SC-ac2ad9690d9e8b8988dc68cf4e2933c7b18a71bc.zip
opensim-SC-ac2ad9690d9e8b8988dc68cf4e2933c7b18a71bc.tar.gz
opensim-SC-ac2ad9690d9e8b8988dc68cf4e2933c7b18a71bc.tar.bz2
opensim-SC-ac2ad9690d9e8b8988dc68cf4e2933c7b18a71bc.tar.xz
HGWorldMapModule: unregister event on RemoveRegion
Diffstat (limited to 'OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs')
-rw-r--r--OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs b/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs
index cb22f0b..97227b3 100644
--- a/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs
+++ b/OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs
@@ -82,7 +82,7 @@ namespace OpenSim.Region.CoreModules.Hypergrid
82 82
83 base.AddRegion(scene); 83 base.AddRegion(scene);
84 84
85 scene.EventManager.OnClientClosed += new EventManager.ClientClosed(EventManager_OnClientClosed); 85 scene.EventManager.OnClientClosed += EventManager_OnClientClosed;
86 } 86 }
87 87
88 public override void RegionLoaded(Scene scene) 88 public override void RegionLoaded(Scene scene)
@@ -99,6 +99,15 @@ namespace OpenSim.Region.CoreModules.Hypergrid
99 m_UserManagement = m_scene.RequestModuleInterface<IUserManagement>(); 99 m_UserManagement = m_scene.RequestModuleInterface<IUserManagement>();
100 100
101 } 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
102 public override string Name 111 public override string Name
103 { 112 {
104 get { return "HGWorldMap"; } 113 get { return "HGWorldMap"; }