add a bit more pre exit cleanup

This commit is contained in:
UbitUmarov
2017-05-24 22:17:04 +01:00
parent 2008e65695
commit dca3a45803
4 changed files with 23 additions and 4 deletions

View File

@@ -31,6 +31,7 @@ using System.Reflection;
using System;
using System.Net;
using System.Collections.Generic;
using OpenSim.Framework;
using OpenSim.Framework.Servers;
using OpenSim.Framework.Servers.HttpServer;
using OpenSim.Server.Base;
@@ -161,6 +162,11 @@ namespace OpenSim.Server
int res = m_Server.Run();
if(m_Server != null)
m_Server.Shutdown();
Util.StopThreadPool();
Environment.Exit(res);
return 0;