Commit 9f9bb9b9 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Messages sent to bare JID are now sent to session with most recent activity (not oldest). JM-1150

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9311 b35dd754-fafc-0310-a699-88a17e54d16e
parent 5862a94e
......@@ -429,7 +429,7 @@ public class RoutingTableImpl extends BasicModule implements RoutingTable, Clust
// Get session with most recent activity (and highest show value)
Collections.sort(targets, new Comparator<ClientSession>() {
public int compare(ClientSession o1, ClientSession o2) {
return o1.getLastActiveDate().compareTo(o2.getLastActiveDate());
return o2.getLastActiveDate().compareTo(o1.getLastActiveDate());
}
});
// Deliver stanza to session with highest priority, highest show value and most recent activity
......
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