Reverting the previous ugly hack and replacing it with try/catch statements for each RegionLoaded() call. This probably won't fix nebadon's crash, but it seems like a good idea
parent
c3712a56f5
commit
c04ffe5c94
|
@ -286,20 +286,14 @@ namespace OpenSim.ApplicationPlugins.RegionModulesController
|
||||||
//
|
//
|
||||||
foreach (ISharedRegionModule module in sharedlist)
|
foreach (ISharedRegionModule module in sharedlist)
|
||||||
{
|
{
|
||||||
if (!module.ToString().Contains("RegionCombinerModule"))
|
try { module.RegionLoaded(scene); }
|
||||||
{
|
catch (Exception ex) { m_log.Error("[REGIONMODULE]: Exception while loading shared region module " + module + ": " + ex.Message, ex); }
|
||||||
m_log.Debug("[REGIONMODULE]: Calling RegionLoaded for " + module);
|
|
||||||
module.RegionLoaded(scene);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
m_log.Debug("[REGIONMODULE]: Skipping RegionCombinerModule");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (INonSharedRegionModule module in list)
|
foreach (INonSharedRegionModule module in list)
|
||||||
{
|
{
|
||||||
module.RegionLoaded(scene);
|
try { module.RegionLoaded(scene); }
|
||||||
|
catch (Exception ex) { m_log.Error("[REGIONMODULE]: Exception while loading non-shared region module " + module + ": " + ex.Message, ex); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue