aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/MainServer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/MainServer.cs')
-rw-r--r--OpenSim/Framework/MainServer.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Framework/MainServer.cs b/OpenSim/Framework/MainServer.cs
index 21033b3..7da4893 100644
--- a/OpenSim/Framework/MainServer.cs
+++ b/OpenSim/Framework/MainServer.cs
@@ -42,8 +42,10 @@ namespace OpenSim.Framework
42 set { instance = value; } 42 set { instance = value; }
43 } 43 }
44 44
45 public IHttpServer GetHttpServer(uint port) 45 public static IHttpServer GetHttpServer(uint port)
46 { 46 {
47 if (port == 0)
48 return Instance;
47 if (port == Instance.Port) 49 if (port == Instance.Port)
48 return Instance; 50 return Instance;
49 51