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/ServerMain.cs | |
parent | mantis 8780 replace ode bins for linux with ones compiled against older Glibc... (diff) | |
download | opensim-SC_OLD-dca3a45803a18103113b9eb861da4f79572de924.zip opensim-SC_OLD-dca3a45803a18103113b9eb861da4f79572de924.tar.gz opensim-SC_OLD-dca3a45803a18103113b9eb861da4f79572de924.tar.bz2 opensim-SC_OLD-dca3a45803a18103113b9eb861da4f79572de924.tar.xz |
add a bit more pre exit cleanup
Diffstat (limited to 'OpenSim/Server/ServerMain.cs')
-rw-r--r-- | OpenSim/Server/ServerMain.cs | 6 |
1 files changed, 6 insertions, 0 deletions
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; |