Commit 38f4de4c authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Small performance optimization.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3508 b35dd754-fafc-0310-a699-88a17e54d16e
parent d712c2d7
...@@ -157,7 +157,7 @@ public class XMPPServer { ...@@ -157,7 +157,7 @@ public class XMPPServer {
*/ */
public boolean isLocal(JID jid) { public boolean isLocal(JID jid) {
boolean local = false; boolean local = false;
if (jid != null && name != null && name.equalsIgnoreCase(jid.getDomain())) { if (jid != null && name != null && name.equals(jid.getDomain())) {
local = true; local = true;
} }
return local; return local;
...@@ -252,7 +252,7 @@ public class XMPPServer { ...@@ -252,7 +252,7 @@ public class XMPPServer {
private void initialize() throws FileNotFoundException { private void initialize() throws FileNotFoundException {
locateWildfire(); locateWildfire();
name = JiveGlobals.getProperty("xmpp.domain"); name = JiveGlobals.getProperty("xmpp.domain").toLowerCase();
if (name == null) { if (name == null) {
name = "127.0.0.1"; name = "127.0.0.1";
} }
...@@ -284,7 +284,7 @@ public class XMPPServer { ...@@ -284,7 +284,7 @@ public class XMPPServer {
// Make sure that setup finished correctly. // Make sure that setup finished correctly.
if ("true".equals(JiveGlobals.getXMLProperty("setup"))) { if ("true".equals(JiveGlobals.getXMLProperty("setup"))) {
// Set the new server domain assigned during the setup process // Set the new server domain assigned during the setup process
name = JiveGlobals.getProperty("xmpp.domain"); name = JiveGlobals.getProperty("xmpp.domain").toLowerCase();
Thread finishSetup = new Thread() { Thread finishSetup = new Thread() {
public void run() { public void run() {
......
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