Commit 0ac3b680 authored by Vlatko Kosturjak's avatar Vlatko Kosturjak

in case client does not support carbons, fallback

to property route.really-all-resources is true
parent 90f2bb9d
......@@ -534,25 +534,21 @@ public class RoutingTableImpl extends BasicModule implements RoutingTable, Clust
return false;
}
// Get the highest priority sessions for normal processing.
List<ClientSession> highestPrioritySessions = getHighestPrioritySessions(nonNegativePrioritySessions);
// Deliver to each session if property route.really-all-resources is true
if (JiveGlobals.getBooleanProperty("route.really-all-resources", false)) {
for (ClientSession session : nonNegativePrioritySessions) {
session.process(packet);
}
return true;
}
// Check for message carbons enabled sessions and send the message to them.
for (ClientSession session : nonNegativePrioritySessions) {
// Deliver to each session, if is message carbons enabled.
if (shouldCarbonCopyToResource(session, packet, isPrivate)) {
session.process(packet);
// Deliver to each session if property route.really-all-resources is true
// (in case client does not support carbons)
} else if (JiveGlobals.getBooleanProperty("route.really-all-resources", false)) {
session.process(packet);
}
}
// Get the highest priority sessions for normal processing.
List<ClientSession> highestPrioritySessions = getHighestPrioritySessions(nonNegativePrioritySessions);
if (highestPrioritySessions.size() == 1) {
// Found only one session so deliver message (if it hasn't already been processed because it has message carbons enabled)
if (!shouldCarbonCopyToResource(highestPrioritySessions.get(0), packet, isPrivate)) {
......
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