mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-25 21:42:07 +01:00
PubSubManager.getLeafNode(): Actually employ the prosody workaround
This commit is contained in:
parent
e6a51f2151
commit
bfab3ec578
1 changed files with 4 additions and 1 deletions
|
@ -321,7 +321,10 @@ public final class PubSubManager extends Manager {
|
||||||
}
|
}
|
||||||
catch (XMPPErrorException e) {
|
catch (XMPPErrorException e) {
|
||||||
if (e.getXMPPError().getCondition() == Condition.service_unavailable) {
|
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;
|
throw e;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue