diff options
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; |