Commit 8fe8d389 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Code cleanup.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@6071 b35dd754-fafc-0310-a699-88a17e54d16e
parent aed17322
...@@ -324,12 +324,12 @@ public class XMPPServer { ...@@ -324,12 +324,12 @@ public class XMPPServer {
// No certificates were found so create new self-signed certificates // No certificates were found so create new self-signed certificates
if (!dsaFound) { if (!dsaFound) {
CertificateManager.createDSACert(ksKeys, SSLConfig.getKeyPassword(), name + "_dsa", "cn=" + name, CertificateManager.createDSACert(ksKeys, SSLConfig.getKeyPassword(),
"cn=" + name, "*." + name); name + "_dsa", "cn=" + name, "cn=" + name, "*." + name);
} }
if (!rsaFound) { if (!rsaFound) {
CertificateManager.createRSACert(ksKeys, SSLConfig.getKeyPassword(), name + "_rsa", "cn=" + name, CertificateManager.createRSACert(ksKeys, SSLConfig.getKeyPassword(),
"cn=" + name, "*." + name); name + "_rsa", "cn=" + name, "cn=" + name, "*." + name);
} }
// Save new certificates into the key store // Save new certificates into the key store
if (!dsaFound || !rsaFound) { if (!dsaFound || !rsaFound) {
......
...@@ -82,10 +82,10 @@ public class PluginManager { ...@@ -82,10 +82,10 @@ public class PluginManager {
// See if we're in development mode. If so, check for new plugins once every 5 seconds. // See if we're in development mode. If so, check for new plugins once every 5 seconds.
// Otherwise, default to every 20 seconds. // Otherwise, default to every 20 seconds.
if (Boolean.getBoolean("developmentMode")) { if (Boolean.getBoolean("developmentMode")) {
executor.scheduleWithFixedDelay(pluginMonitor, 1, 5, TimeUnit.SECONDS); executor.scheduleWithFixedDelay(pluginMonitor, 0, 5, TimeUnit.SECONDS);
} }
else { else {
executor.scheduleWithFixedDelay(pluginMonitor, 1, 20, TimeUnit.SECONDS); executor.scheduleWithFixedDelay(pluginMonitor, 0, 20, TimeUnit.SECONDS);
} }
} }
......
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