diff options
author | Melanie | 2009-09-29 09:56:17 +0100 |
---|---|---|
committer | Melanie | 2009-09-29 09:56:17 +0100 |
commit | 691f1e8aa08db84b689793ea9cd2c72bcfdd9b17 (patch) | |
tree | bccc5f146d169c14615384d60d94f1ae3f79f354 /OpenSim/Server/ServerMain.cs | |
parent | Fixed a bug that was causing exceptions to the thrown in ROBUST MainServer. (diff) | |
download | opensim-SC-691f1e8aa08db84b689793ea9cd2c72bcfdd9b17.zip opensim-SC-691f1e8aa08db84b689793ea9cd2c72bcfdd9b17.tar.gz opensim-SC-691f1e8aa08db84b689793ea9cd2c72bcfdd9b17.tar.bz2 opensim-SC-691f1e8aa08db84b689793ea9cd2c72bcfdd9b17.tar.xz |
Fix loading modules with alternate configurations and ports into ROBUST.
Make all current modules support the configuration name option
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Server/ServerMain.cs | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/OpenSim/Server/ServerMain.cs b/OpenSim/Server/ServerMain.cs index 01f2649..a7b33c9 100644 --- a/OpenSim/Server/ServerMain.cs +++ b/OpenSim/Server/ServerMain.cs | |||
@@ -96,29 +96,23 @@ namespace OpenSim.Server | |||
96 | if (port != 0) | 96 | if (port != 0) |
97 | server = m_Server.GetHttpServer(port); | 97 | server = m_Server.GetHttpServer(port); |
98 | 98 | ||
99 | m_log.InfoFormat("[SERVER]: Loading {0}", friendlyName); | 99 | if (port != m_Server.DefaultPort) |
100 | m_log.InfoFormat("[SERVER]: Loading {0} on port {1}", friendlyName, port); | ||
101 | else | ||
102 | m_log.InfoFormat("[SERVER]: Loading {0}", friendlyName); | ||
100 | 103 | ||
101 | IServiceConnector connector = null; | 104 | IServiceConnector connector = null; |
102 | try | 105 | |
103 | { | 106 | Object[] modargs = new Object[] { m_Server.Config, server, |
104 | Object[] modargs = null; | 107 | configName }; |
105 | if (configName != string.Empty) | 108 | connector = ServerUtils.LoadPlugin<IServiceConnector>(conn, |
106 | { | 109 | modargs); |
107 | modargs = new Object[] { m_Server.Config, server, | 110 | if (connector == null) |
108 | configName }; | ||
109 | connector = ServerUtils.LoadPlugin<IServiceConnector>(conn, | ||
110 | modargs); | ||
111 | } | ||
112 | if (connector == null) | ||
113 | { | ||
114 | modargs = new Object[] { m_Server.Config, server }; | ||
115 | connector = | ||
116 | ServerUtils.LoadPlugin<IServiceConnector>(conn, | ||
117 | modargs); | ||
118 | } | ||
119 | } | ||
120 | catch (Exception) | ||
121 | { | 111 | { |
112 | modargs = new Object[] { m_Server.Config, server }; | ||
113 | connector = | ||
114 | ServerUtils.LoadPlugin<IServiceConnector>(conn, | ||
115 | modargs); | ||
122 | } | 116 | } |
123 | 117 | ||
124 | if (connector != null) | 118 | if (connector != null) |