1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-06-13 07:04:49 +02: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;
}