aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-10-03 16:06:00 +0000
committerJustin Clarke Casey2008-10-03 16:06:00 +0000
commit170cb935cdfcbd0f3a085f93f5b4aaa66083d888 (patch)
tree2c10c321ef0777b58517b13e1478a4997baf6aea /OpenSim/Framework/Servers
parent* minor: restore the standard startup logo text now I understand why things w... (diff)
downloadopensim-SC_OLD-170cb935cdfcbd0f3a085f93f5b4aaa66083d888.zip
opensim-SC_OLD-170cb935cdfcbd0f3a085f93f5b4aaa66083d888.tar.gz
opensim-SC_OLD-170cb935cdfcbd0f3a085f93f5b4aaa66083d888.tar.bz2
opensim-SC_OLD-170cb935cdfcbd0f3a085f93f5b4aaa66083d888.tar.xz
* refactor: make shutdown a template method in the same manner as startup, for consistency's sake
Diffstat (limited to 'OpenSim/Framework/Servers')
-rw-r--r--OpenSim/Framework/Servers/BaseOpenSimServer.cs11
1 files changed, 9 insertions, 2 deletions
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
99 /// Must be overriden by child classes for their own server specific startup behaviour. 99 /// Must be overriden by child classes for their own server specific startup behaviour.
100 /// </summary> 100 /// </summary>
101 protected abstract void StartupSpecific(); 101 protected abstract void StartupSpecific();
102
103 /// <summary>
104 /// Should be overriden and referenced by descendents if they need to perform extra shutdown processing
105 /// </summary>
106 protected virtual void ShutdownSpecific() {}
102 107
103 /// <summary> 108 /// <summary>
104 /// Print statistics to the logfile, if they are active 109 /// Print statistics to the logfile, if they are active
@@ -222,11 +227,13 @@ namespace OpenSim.Framework.Servers
222 227
223 /// <summary> 228 /// <summary>
224 /// Should be overriden and referenced by descendents if they need to perform extra shutdown processing 229 /// Should be overriden and referenced by descendents if they need to perform extra shutdown processing
225 /// </summary> 230 /// </summary>
226 public virtual void Shutdown() 231 public virtual void Shutdown()
227 { 232 {
233 ShutdownSpecific();
234
228 m_log.Info("[SHUTDOWN]: Shutdown processing on main thread complete. Exiting..."); 235 m_log.Info("[SHUTDOWN]: Shutdown processing on main thread complete. Exiting...");
229 236
230 Environment.Exit(0); 237 Environment.Exit(0);
231 } 238 }
232 239