Commit e476079a authored by Matt Tucker's avatar Matt Tucker Committed by matt

Always restart HTTP service to account for generating self-signed certs during setup.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@6095 b35dd754-fafc-0310-a699-88a17e54d16e
parent 6e82fc15
...@@ -344,19 +344,16 @@ public class XMPPServer { ...@@ -344,19 +344,16 @@ public class XMPPServer {
public void run() { public void run() {
try { try {
if (isStandAlone()) { if (isStandAlone()) {
// If the user selected different ports for the admin console to run on, // Always restart the HTTP server manager. This covers the case
// we need to restart the embedded Jetty instance to listen on the // of changing the ports, as well as generating self-signed certificates.
// new ports.
if (!JiveGlobals.getXMLProperty("adminConsole.port").equals("9090") || // Wait a short period before shutting down the admin console.
!JiveGlobals.getXMLProperty("adminConsole.securePort") // Otherwise, the page that requested the setup finish won't
.equals("9091")) { // render properly!
// Wait a short period before shutting down the admin console. Thread.sleep(1000);
// Otherwise, the page that requested the setup finish won't httpServerManager.shutdown();
// render properly! httpServerManager.startup();
Thread.sleep(1000);
httpServerManager.shutdown();
httpServerManager.startup();
}
} }
verifyDataSource(); verifyDataSource();
......
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