diff options
author | Melanie | 2009-10-27 11:32:11 +0000 |
---|---|---|
committer | Melanie | 2009-10-27 11:32:11 +0000 |
commit | 31a848e97bd984ab0a85feca397ce419f6ae839a (patch) | |
tree | 4743f5eb7c12b3723ed4b986d19714d1b3a0a3ea /OpenSim/ApplicationPlugins | |
parent | Commented out instrumentation in ODEPrim.cs (diff) | |
parent | Finally hunted down the Parallel deadlock. Packets were being handled asynchr... (diff) | |
download | opensim-SC-31a848e97bd984ab0a85feca397ce419f6ae839a.zip opensim-SC-31a848e97bd984ab0a85feca397ce419f6ae839a.tar.gz opensim-SC-31a848e97bd984ab0a85feca397ce419f6ae839a.tar.bz2 opensim-SC-31a848e97bd984ab0a85feca397ce419f6ae839a.tar.xz |
Merge branch 'master' into vehicles
Diffstat (limited to '')
-rw-r--r-- | OpenSim/ApplicationPlugins/RegionModulesController/RegionModulesControllerPlugin.cs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/OpenSim/ApplicationPlugins/RegionModulesController/RegionModulesControllerPlugin.cs b/OpenSim/ApplicationPlugins/RegionModulesController/RegionModulesControllerPlugin.cs index ddc37ed..6c0c74d 100644 --- a/OpenSim/ApplicationPlugins/RegionModulesController/RegionModulesControllerPlugin.cs +++ b/OpenSim/ApplicationPlugins/RegionModulesController/RegionModulesControllerPlugin.cs | |||
@@ -341,14 +341,15 @@ namespace OpenSim.ApplicationPlugins.RegionModulesController | |||
341 | 341 | ||
342 | // Actually load it | 342 | // Actually load it |
343 | INonSharedRegionModule module = null; | 343 | INonSharedRegionModule module = null; |
344 | try | 344 | |
345 | { | 345 | Type[] ctorParamTypes = new Type[ctorArgs.Length]; |
346 | for (int i = 0; i < ctorParamTypes.Length; i++) | ||
347 | ctorParamTypes[i] = ctorArgs[i].GetType(); | ||
348 | |||
349 | if (node.Type.GetConstructor(ctorParamTypes) != null) | ||
346 | module = (INonSharedRegionModule)Activator.CreateInstance(node.Type, ctorArgs); | 350 | module = (INonSharedRegionModule)Activator.CreateInstance(node.Type, ctorArgs); |
347 | } | 351 | else |
348 | catch | ||
349 | { | ||
350 | module = (INonSharedRegionModule)Activator.CreateInstance(node.Type); | 352 | module = (INonSharedRegionModule)Activator.CreateInstance(node.Type); |
351 | } | ||
352 | 353 | ||
353 | // Check for replaceable interfaces | 354 | // Check for replaceable interfaces |
354 | Type replaceableInterface = module.ReplaceableInterface; | 355 | Type replaceableInterface = module.ReplaceableInterface; |