don’t transition when calling endCall and session was already terminated

This commit is contained in:
Daniel Gultsch 2020-04-14 11:56:02 +02:00
parent 65b43661dd
commit dd42a6b850
1 changed files with 4 additions and 0 deletions

View File

@ -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;