do not attempt to reject call if session had already ended. fixes #3798

This commit is contained in:
Daniel Gultsch 2020-06-18 20:32:58 +02:00
parent fe68aff23c
commit 169ee99afa
1 changed files with 4 additions and 0 deletions

View File

@ -889,6 +889,10 @@ public class JingleRtpConnection extends AbstractJingleConnection implements Web
} }
public synchronized void rejectCall() { 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) { switch (this.state) {
case PROPOSED: case PROPOSED:
rejectCallFromProposed(); rejectCallFromProposed();