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 {
session.setAddress(new JID(null, hostname, null));
// Add the validated domain as a valid domain
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
session.addLocalDomain(recipient);
session.setLocalDomain(recipient);
return session;
}
}
......@@ -427,7 +427,7 @@ class ServerDialback {
boolean alreadyExists = false;
for (IncomingServerSession session : sessionManager
.getIncomingServerSessions(hostname)) {
if (session.getLocalDomains().contains(recipient)) {
if (recipient.equals(session.getLocalDomain())) {
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