diff options
author | UbitUmarov | 2017-05-24 22:17:04 +0100 |
---|---|---|
committer | UbitUmarov | 2017-05-24 22:17:04 +0100 |
commit | dca3a45803a18103113b9eb861da4f79572de924 (patch) | |
tree | 71b2dad54f62c9e0ff5e0df5383c2d7be5121520 /OpenSim/Server | |
parent | mantis 8780 replace ode bins for linux with ones compiled against older Glibc... (diff) | |
download | opensim-SC-dca3a45803a18103113b9eb861da4f79572de924.zip opensim-SC-dca3a45803a18103113b9eb861da4f79572de924.tar.gz opensim-SC-dca3a45803a18103113b9eb861da4f79572de924.tar.bz2 opensim-SC-dca3a45803a18103113b9eb861da4f79572de924.tar.xz |
add a bit more pre exit cleanup
Diffstat (limited to 'OpenSim/Server')
-rw-r--r-- | OpenSim/Server/Base/ServicesServerBase.cs | 3 | ||||
-rw-r--r-- | OpenSim/Server/ServerMain.cs | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Server/Base/ServicesServerBase.cs b/OpenSim/Server/Base/ServicesServerBase.cs index 4951776..8db97a8 100644 --- a/OpenSim/Server/Base/ServicesServerBase.cs +++ b/OpenSim/Server/Base/ServicesServerBase.cs | |||
@@ -249,6 +249,9 @@ namespace OpenSim.Server.Base | |||
249 | } | 249 | } |
250 | } | 250 | } |
251 | 251 | ||
252 | MemoryWatchdog.Enabled = false; | ||
253 | Watchdog.Enabled = false; | ||
254 | |||
252 | RemovePIDFile(); | 255 | RemovePIDFile(); |
253 | 256 | ||
254 | return 0; | 257 | return 0; |
diff --git a/OpenSim/Server/ServerMain.cs b/OpenSim/Server/ServerMain.cs index 341c227..accf938 100644 --- a/OpenSim/Server/ServerMain.cs +++ b/OpenSim/Server/ServerMain.cs | |||
@@ -31,6 +31,7 @@ using System.Reflection; | |||
31 | using System; | 31 | using System; |
32 | using System.Net; | 32 | using System.Net; |
33 | using System.Collections.Generic; | 33 | using System.Collections.Generic; |
34 | using OpenSim.Framework; | ||
34 | using OpenSim.Framework.Servers; | 35 | using OpenSim.Framework.Servers; |
35 | using OpenSim.Framework.Servers.HttpServer; | 36 | using OpenSim.Framework.Servers.HttpServer; |
36 | using OpenSim.Server.Base; | 37 | using OpenSim.Server.Base; |
@@ -161,6 +162,11 @@ namespace OpenSim.Server | |||
161 | 162 | ||
162 | int res = m_Server.Run(); | 163 | int res = m_Server.Run(); |
163 | 164 | ||
165 | if(m_Server != null) | ||
166 | m_Server.Shutdown(); | ||
167 | |||
168 | Util.StopThreadPool(); | ||
169 | |||
164 | Environment.Exit(res); | 170 | Environment.Exit(res); |
165 | 171 | ||
166 | return 0; | 172 | return 0; |