diff options
Diffstat (limited to 'OpenSim/ApplicationPlugins/RegionModulesController/RegionModulesControllerPlugin.cs')
-rw-r--r-- | OpenSim/ApplicationPlugins/RegionModulesController/RegionModulesControllerPlugin.cs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/OpenSim/ApplicationPlugins/RegionModulesController/RegionModulesControllerPlugin.cs b/OpenSim/ApplicationPlugins/RegionModulesController/RegionModulesControllerPlugin.cs index f30a18b..a868bd0 100644 --- a/OpenSim/ApplicationPlugins/RegionModulesController/RegionModulesControllerPlugin.cs +++ b/OpenSim/ApplicationPlugins/RegionModulesController/RegionModulesControllerPlugin.cs | |||
@@ -268,7 +268,7 @@ namespace OpenSim.ApplicationPlugins.RegionModulesController | |||
268 | deferredlist.Add(module); | 268 | deferredlist.Add(module); |
269 | } | 269 | } |
270 | 270 | ||
271 | foreach (INonSharedRegionModule module in deferredlist) | 271 | foreach (IRegionModuleBase module in deferredlist) |
272 | { | 272 | { |
273 | module.AddRegion(scene); | 273 | module.AddRegion(scene); |
274 | scene.AddRegionModule(module.Name, module); | 274 | scene.AddRegionModule(module.Name, module); |
@@ -284,14 +284,16 @@ namespace OpenSim.ApplicationPlugins.RegionModulesController | |||
284 | // and unneccessary caching logic repeated in all modules. | 284 | // and unneccessary caching logic repeated in all modules. |
285 | // The extra function stub is just that much cleaner | 285 | // The extra function stub is just that much cleaner |
286 | // | 286 | // |
287 | foreach (ISharedRegionModule module in sharedlist) | 287 | foreach (IRegionModuleBase module in sharedlist) |
288 | { | 288 | { |
289 | module.RegionLoaded(scene); | 289 | try { module.RegionLoaded(scene); } |
290 | catch (Exception ex) { m_log.Error("[REGIONMODULE]: Exception while loading shared region module " + module + ": " + ex.Message, ex); } | ||
290 | } | 291 | } |
291 | 292 | ||
292 | foreach (INonSharedRegionModule module in list) | 293 | foreach (IRegionModuleBase module in list) |
293 | { | 294 | { |
294 | module.RegionLoaded(scene); | 295 | try { module.RegionLoaded(scene); } |
296 | catch (Exception ex) { m_log.Error("[REGIONMODULE]: Exception while loading non-shared region module " + module + ": " + ex.Message, ex); } | ||
295 | } | 297 | } |
296 | } | 298 | } |
297 | 299 | ||