diff options
author | Diva Canto | 2013-07-31 11:20:27 -0700 |
---|---|---|
committer | Diva Canto | 2013-07-31 11:20:27 -0700 |
commit | ac2ad9690d9e8b8988dc68cf4e2933c7b18a71bc (patch) | |
tree | 37331a1e084be9cb5b6b0020f40c3023f3eba031 | |
parent | HGWorldMapModule: check whether it's enabled or not. (diff) | |
download | opensim-SC_OLD-ac2ad9690d9e8b8988dc68cf4e2933c7b18a71bc.zip opensim-SC_OLD-ac2ad9690d9e8b8988dc68cf4e2933c7b18a71bc.tar.gz opensim-SC_OLD-ac2ad9690d9e8b8988dc68cf4e2933c7b18a71bc.tar.bz2 opensim-SC_OLD-ac2ad9690d9e8b8988dc68cf4e2933c7b18a71bc.tar.xz |
HGWorldMapModule: unregister event on RemoveRegion
-rw-r--r-- | OpenSim/Region/CoreModules/Hypergrid/HGWorldMapModule.cs | 11 |
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"; } |