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 {
*/
public boolean isLocal(JID jid) {
boolean local = false;
if (jid != null && name != null && name.equalsIgnoreCase(jid.getDomain())) {
if (jid != null && name != null && name.equals(jid.getDomain())) {
local = true;
}
return local;
......@@ -252,7 +252,7 @@ public class XMPPServer {
private void initialize() throws FileNotFoundException {
locateWildfire();
name = JiveGlobals.getProperty("xmpp.domain");
name = JiveGlobals.getProperty("xmpp.domain").toLowerCase();
if (name == null) {
name = "127.0.0.1";
}
......@@ -284,7 +284,7 @@ public class XMPPServer {
// Make sure that setup finished correctly.
if ("true".equals(JiveGlobals.getXMLProperty("setup"))) {
// 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() {
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