diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Servers/MainServer.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/MainServer.cs b/OpenSim/Framework/Servers/MainServer.cs index d189580..57931d4 100644 --- a/OpenSim/Framework/Servers/MainServer.cs +++ b/OpenSim/Framework/Servers/MainServer.cs | |||
@@ -285,7 +285,12 @@ namespace OpenSim.Framework.Servers | |||
285 | public static bool RemoveHttpServer(uint port) | 285 | public static bool RemoveHttpServer(uint port) |
286 | { | 286 | { |
287 | lock (m_Servers) | 287 | lock (m_Servers) |
288 | { | ||
289 | if (instance != null && instance.Port == port) | ||
290 | instance = null; | ||
291 | |||
288 | return m_Servers.Remove(port); | 292 | return m_Servers.Remove(port); |
293 | } | ||
289 | } | 294 | } |
290 | 295 | ||
291 | /// <summary> | 296 | /// <summary> |