From 169ee99afae5ef2cb3a7f4eae478f9ca0ce8c643 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 18 Jun 2020 20:32:58 +0200 Subject: [PATCH] do not attempt to reject call if session had already ended. fixes #3798 --- .../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 e45b79997..e6e2cdda3 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java +++ b/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleRtpConnection.java @@ -889,6 +889,10 @@ public class JingleRtpConnection extends AbstractJingleConnection implements Web } public synchronized void rejectCall() { + if (isTerminated()) { + Log.w(Config.LOGTAG,id.account.getJid().asBareJid()+": received rejectCall() when session has already been terminated. nothing to do"); + return; + } switch (this.state) { case PROPOSED: rejectCallFromProposed();