diff options
author | Melanie | 2010-12-07 01:07:13 +0100 |
---|---|---|
committer | Melanie | 2010-12-07 01:07:13 +0100 |
commit | b960a05e67b4aed543e37f4e041f0d5e5cc2d7c0 (patch) | |
tree | 55378d0b16a268c79f1e8c531d9e0525efee1240 /OpenSim/Region/Application | |
parent | Lock the attachments dict so it doesn't get out of sync when iterating (diff) | |
download | opensim-SC_OLD-b960a05e67b4aed543e37f4e041f0d5e5cc2d7c0.zip opensim-SC_OLD-b960a05e67b4aed543e37f4e041f0d5e5cc2d7c0.tar.gz opensim-SC_OLD-b960a05e67b4aed543e37f4e041f0d5e5cc2d7c0.tar.bz2 opensim-SC_OLD-b960a05e67b4aed543e37f4e041f0d5e5cc2d7c0.tar.xz |
Cowardly refuse to keep running when no application plugins are loaded.
Prevents empty instances from hanging around when Mono.Addins messes up
Diffstat (limited to 'OpenSim/Region/Application')
-rw-r--r-- | OpenSim/Region/Application/OpenSimBase.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index 6a7272d..941472b 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs | |||
@@ -222,6 +222,12 @@ namespace OpenSim | |||
222 | m_moduleLoader = new ModuleLoader(m_config.Source); | 222 | m_moduleLoader = new ModuleLoader(m_config.Source); |
223 | 223 | ||
224 | LoadPlugins(); | 224 | LoadPlugins(); |
225 | |||
226 | if (m_plugins.Count == 0) // We failed to load any modules. Mono Addins glitch! | ||
227 | { | ||
228 | Environment.Exit(1); | ||
229 | } | ||
230 | |||
225 | foreach (IApplicationPlugin plugin in m_plugins) | 231 | foreach (IApplicationPlugin plugin in m_plugins) |
226 | { | 232 | { |
227 | plugin.PostInitialise(); | 233 | plugin.PostInitialise(); |