Commit b7bbc73b authored by Armando Jagucki's avatar Armando Jagucki Committed by ajagucki

Removed redundant error checking in IQPEPHandler when sending the last...

Removed redundant error checking in IQPEPHandler when sending the last published items on newly available presences.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/branches/pep@8967 b35dd754-fafc-0310-a699-88a17e54d16e
parent 6e22cea8
......@@ -16,7 +16,6 @@ import org.dom4j.Element;
import org.dom4j.QName;
import org.jivesoftware.database.DbConnectionManager;
import org.jivesoftware.openfire.IQHandlerInfo;
import org.jivesoftware.openfire.PresenceManager;
import org.jivesoftware.openfire.XMPPServer;
import org.jivesoftware.openfire.auth.UnauthorizedException;
import org.jivesoftware.openfire.disco.ServerFeaturesProvider;
......@@ -508,17 +507,8 @@ public class IQPEPHandler extends IQHandler implements ServerIdentitiesProvider,
JID newlyAvailableJID = presence.getFrom();
PresenceManager presenceManager = XMPPServer.getInstance().getPresenceManager();
for (PEPService pepService : pepServices.values()) {
try {
if (presenceManager.canProbePresence(newlyAvailableJID, pepService.getAddress().getNode())) {
pepService.sendLastPublishedItems(newlyAvailableJID);
}
}
catch (UserNotFoundException e) {
// Do nothing
}
pepService.sendLastPublishedItems(newlyAvailableJID);
}
}
......
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