Commit 3db455fc authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Minor refactoring work.

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@2865 b35dd754-fafc-0310-a699-88a17e54d16e
parent 5dbb9cc0
...@@ -328,9 +328,9 @@ class ServerDialback { ...@@ -328,9 +328,9 @@ class ServerDialback {
session.setAddress(new JID(null, hostname, null)); session.setAddress(new JID(null, hostname, null));
// Add the validated domain as a valid domain // Add the validated domain as a valid domain
session.addValidatedDomain(hostname); session.addValidatedDomain(hostname);
// Add the domain or subdomain of the local server used when // Set the domain or subdomain of the local server used when
// validating the session // validating the session
session.addLocalDomain(recipient); session.setLocalDomain(recipient);
return session; return session;
} }
} }
...@@ -427,7 +427,7 @@ class ServerDialback { ...@@ -427,7 +427,7 @@ class ServerDialback {
boolean alreadyExists = false; boolean alreadyExists = false;
for (IncomingServerSession session : sessionManager for (IncomingServerSession session : sessionManager
.getIncomingServerSessions(hostname)) { .getIncomingServerSessions(hostname)) {
if (session.getLocalDomains().contains(recipient)) { if (recipient.equals(session.getLocalDomain())) {
alreadyExists = true; alreadyExists = true;
} }
} }
......
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