forked from mirror/monocles_chat_clean
don’t transition when calling endCall and session was already terminated
This commit is contained in:
parent
96bc8f2465
commit
9f230b8e49
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue