mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-10-31 17:25:58 +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
|
||||
// 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);
|
||||
return getLeafNodeProsodyWorkaround(id);
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
|
@ -336,7 +336,8 @@ public final class PubSubManager extends Manager {
|
|||
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);
|
||||
try {
|
||||
// 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) {
|
||||
if (e1.getXMPPError().getCondition() == Condition.conflict) {
|
||||
return getLeafNodeProsoydWorkaround(id);
|
||||
return getLeafNodeProsodyWorkaround(id);
|
||||
}
|
||||
throw e1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue