1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 06:12:05 +01:00

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

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;
}