From bfab3ec5781fbf974a9934a653f666b1746b4bbb Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 19 Apr 2017 11:50:01 +0200 Subject: [PATCH] PubSubManager.getLeafNode(): Actually employ the prosody workaround --- .../java/org/jivesoftware/smackx/pubsub/PubSubManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/PubSubManager.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/PubSubManager.java index 663fc308d..1f40b3c1e 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/PubSubManager.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/PubSubManager.java @@ -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; }