From 9afac21b0b46746779b7fc7d547d763039a08f22 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Wed, 22 Apr 2020 14:49:48 +0200 Subject: [PATCH] =?UTF-8?q?don=E2=80=99t=20throw=20when=20user=20double=20?= =?UTF-8?q?taps=20accept=20button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../conversations/xmpp/jingle/JingleRtpConnection.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java b/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java index 797993aa5..1a02f2af7 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java +++ b/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java @@ -789,6 +789,13 @@ public class JingleRtpConnection extends AbstractJingleConnection implements Web case SESSION_INITIALIZED: acceptCallFromSessionInitialized(); break; + case ACCEPTED: + Log.w(Config.LOGTAG,id.account.getJid().asBareJid()+": the call has already been accepted with another client. UI was just lagging behind"); + break; + case PROCEED: + case SESSION_ACCEPTED: + Log.w(Config.LOGTAG,id.account.getJid().asBareJid()+": the call has already been accepted. user probably double tapped the UI"); + break; default: throw new IllegalStateException("Can not accept call from " + this.state); }