mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
add a bit more pre exit cleanup
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user