From dd42a6b850336f8103a66ead7c691c8444cd650e Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 14 Apr 2020 11:56:02 +0200 Subject: [PATCH] =?UTF-8?q?don=E2=80=99t=20transition=20when=20calling=20e?= =?UTF-8?q?ndCall=20and=20session=20was=20already=20terminated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../siacs/conversations/xmpp/jingle/JingleRtpConnection.java | 4 ++++ 1 file changed, 4 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 3f2e97d00..06e15ac0e 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java +++ b/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java @@ -737,6 +737,10 @@ public class JingleRtpConnection extends AbstractJingleConnection implements Web } public synchronized void endCall() { + if (TERMINATED.contains(this.state)) { + Log.w(Config.LOGTAG,id.account.getJid().asBareJid()+": received endCall() when session has already been terminated. nothing to do"); + return; + } if (isInState(State.PROPOSED) && !isInitiator()) { rejectCallFromProposed(); return;