From 170cb935cdfcbd0f3a085f93f5b4aaa66083d888 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Fri, 3 Oct 2008 16:06:00 +0000
Subject: * refactor: make shutdown a template method in the same manner as
startup, for consistency's sake
---
OpenSim/Framework/Servers/BaseOpenSimServer.cs | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
(limited to 'OpenSim/Framework/Servers')
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
index 3705f68..f5e5c18 100644
--- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs
+++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
@@ -99,6 +99,11 @@ namespace OpenSim.Framework.Servers
/// Must be overriden by child classes for their own server specific startup behaviour.
///
protected abstract void StartupSpecific();
+
+ ///
+ /// Should be overriden and referenced by descendents if they need to perform extra shutdown processing
+ ///
+ protected virtual void ShutdownSpecific() {}
///
/// Print statistics to the logfile, if they are active
@@ -222,11 +227,13 @@ namespace OpenSim.Framework.Servers
///
/// Should be overriden and referenced by descendents if they need to perform extra shutdown processing
- ///
+ ///
public virtual void Shutdown()
{
+ ShutdownSpecific();
+
m_log.Info("[SHUTDOWN]: Shutdown processing on main thread complete. Exiting...");
-
+
Environment.Exit(0);
}
--
cgit v1.1