PubSubManager.getLeafNode(): Actually employ the prosody workaround

This commit is contained in:
Florian Schmaus 2017-04-19 11:50:01 +02:00
parent e6a51f2151
commit bfab3ec578
1 changed files with 4 additions and 1 deletions

View File

@ -321,7 +321,10 @@ public final class PubSubManager extends Manager {
}
catch (XMPPErrorException e) {
if (e.getXMPPError().getCondition() == Condition.service_unavailable) {
// This could be caused by Prosody bug #805 (see https://prosody.im/issues/issue/805). Prosody does not
// answer to disco#info requests on the node ID, which makes it undecidable if a node is a leaf or
// collection node.
return getLeafNodeProsoydWorkaround(id);
}
throw e;
}