From 4b66b4b5d1c6376c964d1f252b813ba21b80a64d Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 26 Apr 2014 17:26:22 +0200 Subject: bug fix for jingle --- src/eu/siacs/conversations/xmpp/jingle/JingleConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/eu/siacs/conversations/xmpp/jingle/JingleConnection.java b/src/eu/siacs/conversations/xmpp/jingle/JingleConnection.java index 4f383f52..bcf75c0c 100644 --- a/src/eu/siacs/conversations/xmpp/jingle/JingleConnection.java +++ b/src/eu/siacs/conversations/xmpp/jingle/JingleConnection.java @@ -381,7 +381,7 @@ public class JingleConnection { } else if (content.socks5transport().hasChild("candidate-error")) { Log.d("xmppService","received candidate error"); this.receivedCandidate = true; - if (status == STATUS_ACCEPTED) { + if ((status == STATUS_ACCEPTED)&&(this.sentCandidate)) { this.connect(); } } else if (content.socks5transport().hasChild("candidate-used")){ -- cgit v1.2.3