mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-25 15:52:06 +01:00
Fix typo: s/ProsoydWorkaround/ProsodyWorkaround/
This commit is contained in:
parent
ddf888e607
commit
24f6d86452
1 changed files with 4 additions and 3 deletions
|
@ -324,7 +324,7 @@ public final class PubSubManager extends Manager {
|
||||||
// This could be caused by Prosody bug #805 (see https://prosody.im/issues/issue/805). Prosody does not
|
// 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
|
// answer to disco#info requests on the node ID, which makes it undecidable if a node is a leaf or
|
||||||
// collection node.
|
// collection node.
|
||||||
return getLeafNodeProsoydWorkaround(id);
|
return getLeafNodeProsodyWorkaround(id);
|
||||||
}
|
}
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
@ -336,7 +336,8 @@ public final class PubSubManager extends Manager {
|
||||||
throw new PubSubException.NotALeafNodeException(id, pubSubService);
|
throw new PubSubException.NotALeafNodeException(id, pubSubService);
|
||||||
}
|
}
|
||||||
|
|
||||||
private LeafNode getLeafNodeProsoydWorkaround(final String id) throws NoResponseException, NotConnectedException, InterruptedException, NotALeafNodeException, XMPPErrorException {
|
private LeafNode getLeafNodeProsodyWorkaround(final String id) throws NoResponseException, NotConnectedException,
|
||||||
|
InterruptedException, NotALeafNodeException, XMPPErrorException {
|
||||||
LeafNode leafNode = new LeafNode(this, id);
|
LeafNode leafNode = new LeafNode(this, id);
|
||||||
try {
|
try {
|
||||||
// Try to ensure that this is not a collection node by asking for one item form the node.
|
// Try to ensure that this is not a collection node by asking for one item form the node.
|
||||||
|
@ -363,7 +364,7 @@ public final class PubSubManager extends Manager {
|
||||||
}
|
}
|
||||||
catch (XMPPErrorException e1) {
|
catch (XMPPErrorException e1) {
|
||||||
if (e1.getXMPPError().getCondition() == Condition.conflict) {
|
if (e1.getXMPPError().getCondition() == Condition.conflict) {
|
||||||
return getLeafNodeProsoydWorkaround(id);
|
return getLeafNodeProsodyWorkaround(id);
|
||||||
}
|
}
|
||||||
throw e1;
|
throw e1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue