aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorMelanie2010-01-11 03:29:24 +0000
committerMelanie2010-01-11 03:29:24 +0000
commite966e51b89bdc0fc36482621f8954e5faffc8fbf (patch)
tree94696a2cba39c0d018dd85717a20a8ac449dc3db /OpenSim/Framework
parentWhitespace cleanup (diff)
downloadopensim-SC_OLD-e966e51b89bdc0fc36482621f8954e5faffc8fbf.zip
opensim-SC_OLD-e966e51b89bdc0fc36482621f8954e5faffc8fbf.tar.gz
opensim-SC_OLD-e966e51b89bdc0fc36482621f8954e5faffc8fbf.tar.bz2
opensim-SC_OLD-e966e51b89bdc0fc36482621f8954e5faffc8fbf.tar.xz
Add a console_port setting to let the rest console use a different port
from the region server
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/MainServer.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Framework/MainServer.cs b/OpenSim/Framework/MainServer.cs
index 7da4893..84cc05e 100644
--- a/OpenSim/Framework/MainServer.cs
+++ b/OpenSim/Framework/MainServer.cs
@@ -32,7 +32,7 @@ namespace OpenSim.Framework
32{ 32{
33 public class MainServer 33 public class MainServer
34 { 34 {
35 private static BaseHttpServer instance; 35 private static BaseHttpServer instance = null;
36 private static Dictionary<uint, BaseHttpServer> m_Servers = 36 private static Dictionary<uint, BaseHttpServer> m_Servers =
37 new Dictionary<uint, BaseHttpServer>(); 37 new Dictionary<uint, BaseHttpServer>();
38 38
@@ -46,7 +46,7 @@ namespace OpenSim.Framework
46 { 46 {
47 if (port == 0) 47 if (port == 0)
48 return Instance; 48 return Instance;
49 if (port == Instance.Port) 49 if (instance != null && port == Instance.Port)
50 return Instance; 50 return Instance;
51 51
52 if (m_Servers.ContainsKey(port)) 52 if (m_Servers.ContainsKey(port))