aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server
diff options
context:
space:
mode:
authorUbitUmarov2017-05-24 22:17:04 +0100
committerUbitUmarov2017-05-24 22:17:04 +0100
commitdca3a45803a18103113b9eb861da4f79572de924 (patch)
tree71b2dad54f62c9e0ff5e0df5383c2d7be5121520 /OpenSim/Server
parentmantis 8780 replace ode bins for linux with ones compiled against older Glibc... (diff)
downloadopensim-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.cs3
-rw-r--r--OpenSim/Server/ServerMain.cs6
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;
31using System; 31using System;
32using System.Net; 32using System.Net;
33using System.Collections.Generic; 33using System.Collections.Generic;
34using OpenSim.Framework;
34using OpenSim.Framework.Servers; 35using OpenSim.Framework.Servers;
35using OpenSim.Framework.Servers.HttpServer; 36using OpenSim.Framework.Servers.HttpServer;
36using OpenSim.Server.Base; 37using 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;