diff options
Diffstat (limited to 'OpenSim/Region/Environment/ModuleLoader.cs')
-rw-r--r-- | OpenSim/Region/Environment/ModuleLoader.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/ModuleLoader.cs b/OpenSim/Region/Environment/ModuleLoader.cs index fc11a50..1bab2e5 100644 --- a/OpenSim/Region/Environment/ModuleLoader.cs +++ b/OpenSim/Region/Environment/ModuleLoader.cs | |||
@@ -121,7 +121,10 @@ namespace OpenSim.Region.Environment | |||
121 | IRegionModule module = LoadModule(dllName, moduleName); | 121 | IRegionModule module = LoadModule(dllName, moduleName); |
122 | if (module != null) | 122 | if (module != null) |
123 | { | 123 | { |
124 | m_loadedSharedModules.Add(module.Name, module); | 124 | if (!m_loadedSharedModules.ContainsKey(module.Name)) |
125 | { | ||
126 | m_loadedSharedModules.Add(module.Name, module); | ||
127 | } | ||
125 | } | 128 | } |
126 | } | 129 | } |
127 | 130 | ||
@@ -139,6 +142,11 @@ namespace OpenSim.Region.Environment | |||
139 | m_log.Verbose("MODULES", " [{0}]: Initializing.", module.Name); | 142 | m_log.Verbose("MODULES", " [{0}]: Initializing.", module.Name); |
140 | InitializeModule(module, scene); | 143 | InitializeModule(module, scene); |
141 | } | 144 | } |
145 | else | ||
146 | { | ||
147 | m_log.Verbose("MODULES", " [{0}]: Loading Shared Module.", module.Name); | ||
148 | LoadSharedModule(dllName, module.Name); | ||
149 | } | ||
142 | } | 150 | } |
143 | } | 151 | } |
144 | } | 152 | } |