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") ||
!JiveGlobals.getXMLProperty("adminConsole.securePort")
.equals("9091")) {
// Wait a short period before shutting down the admin console. // Wait a short period before shutting down the admin console.
// Otherwise, the page that requested the setup finish won't // Otherwise, the page that requested the setup finish won't
// render properly! // render properly!
Thread.sleep(1000); Thread.sleep(1000);
httpServerManager.shutdown(); httpServerManager.shutdown();
httpServerManager.startup(); 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