aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Schneppe <christian.schneppe@pix-art.de>2019-10-26 17:21:21 +0200
committerChristian Schneppe <christian.schneppe@pix-art.de>2019-10-26 17:21:21 +0200
commit82639b94b7792b3b6815daafa67556fe97ac415f (patch)
treee3cfdb9065ea9bd15ca95f4b87e63c9a67925f4d /src
parent7c8b91325e858a5f203fb908b2a533dee4cc05ed (diff)
show reason in error message
Diffstat (limited to 'src')
-rw-r--r--src/main/java/de/pixart/messenger/xmpp/jingle/JingleConnection.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/xmpp/jingle/JingleConnection.java b/src/main/java/de/pixart/messenger/xmpp/jingle/JingleConnection.java
index bfaeacc31..9adb6f62e 100644
--- a/src/main/java/de/pixart/messenger/xmpp/jingle/JingleConnection.java
+++ b/src/main/java/de/pixart/messenger/xmpp/jingle/JingleConnection.java
@@ -234,7 +234,12 @@ public class JingleConnection implements Transferable {
} else if (reason.hasChild("success")) {
this.receiveSuccess();
} else {
- this.fail(reason.getName());
+ final List<Element> children = reason.getChildren();
+ if (children.size() == 1) {
+ this.fail(children.get(0).getName());
+ } else {
+ this.fail();
+ }
}
} else {
this.fail();