Commit ae0536f0 authored by Tom Evans's avatar Tom Evans Committed by tevans

OF-205: Modify shutdown order (TaskEngine); mark build for BETA

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/branches/pubsub_clustering@13291 b35dd754-fafc-0310-a699-88a17e54d16e
parent eac8a43e
...@@ -354,7 +354,7 @@ public class XMPPServer { ...@@ -354,7 +354,7 @@ public class XMPPServer {
Log.warn("Unable to determine local hostname.", ex); Log.warn("Unable to determine local hostname.", ex);
} }
version = new Version(3, 7, 2, Version.ReleaseStatus.Alpha, -1); version = new Version(3, 7, 2, Version.ReleaseStatus.Beta, -1);
if ("true".equals(JiveGlobals.getXMLProperty("setup"))) { if ("true".equals(JiveGlobals.getXMLProperty("setup"))) {
setupMode = false; setupMode = false;
} }
...@@ -934,9 +934,6 @@ public class XMPPServer { ...@@ -934,9 +934,6 @@ public class XMPPServer {
for (XMPPServerListener listener : listeners) { for (XMPPServerListener listener : listeners) {
listener.serverStopping(); listener.serverStopping();
} }
// Shutdown the task engine.
TaskEngine.getInstance().shutdown();
// If we don't have modules then the server has already been shutdown // If we don't have modules then the server has already been shutdown
if (modules.isEmpty()) { if (modules.isEmpty()) {
return; return;
...@@ -953,6 +950,10 @@ public class XMPPServer { ...@@ -953,6 +950,10 @@ public class XMPPServer {
modules.clear(); modules.clear();
// Stop the Db connection manager. // Stop the Db connection manager.
DbConnectionManager.destroyConnectionProvider(); DbConnectionManager.destroyConnectionProvider();
// Shutdown the task engine.
TaskEngine.getInstance().shutdown();
// hack to allow safe stopping // hack to allow safe stopping
Log.info("Openfire stopped"); Log.info("Openfire stopped");
} }
......
...@@ -281,7 +281,7 @@ public class TaskEngine { ...@@ -281,7 +281,7 @@ public class TaskEngine {
*/ */
public void shutdown() { public void shutdown() {
if (executor != null) { if (executor != null) {
executor.shutdownNow(); executor.shutdown();
executor = null; executor = null;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment