Commit 98c8b4e3 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Unavailable presences are no longer rejected even when coming from closed connections. JM-1184

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9495 b35dd754-fafc-0310-a699-88a17e54d16e
parent 55ff8765
...@@ -147,9 +147,9 @@ public class PresenceRouter extends BasicModule { ...@@ -147,9 +147,9 @@ public class PresenceRouter extends BasicModule {
} }
} }
// Check that sender session is still active // Check that sender session is still active (let unavailable presence go through)
Session session = sessionManager.getSession(packet.getFrom()); Session session = sessionManager.getSession(packet.getFrom());
if (session != null && session.getStatus() == Session.STATUS_CLOSED) { if (session != null && session.getStatus() == Session.STATUS_CLOSED && type == null) {
Log.warn("Rejected available presence: " + packet + " - " + session); Log.warn("Rejected available presence: " + packet + " - " + session);
return; return;
} }
......
...@@ -444,8 +444,7 @@ public class PresenceUpdateHandler extends BasicModule implements ChannelHandler ...@@ -444,8 +444,7 @@ public class PresenceUpdateHandler extends BasicModule implements ChannelHandler
for (String receiver : directedPresence.getReceivers()) { for (String receiver : directedPresence.getReceivers()) {
Presence presence = update.createCopy(); Presence presence = update.createCopy();
presence.setTo(receiver); presence.setTo(receiver);
routingTable.routePacket(directedPresence.getHandler(), presence, false); localServer.getPresenceRouter().route(presence);
} }
} }
localDirectedPresences.remove(from.toString()); localDirectedPresences.remove(from.toString());
......
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