aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/ServerMain.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Server/ServerMain.cs')
-rw-r--r--OpenSim/Server/ServerMain.cs6
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;
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;