don’t throw when user double taps accept button

This commit is contained in:
Daniel Gultsch 2020-04-22 14:49:48 +02:00
parent 04a7b9da1c
commit 9afac21b0b
1 changed files with 7 additions and 0 deletions

View File

@ -789,6 +789,13 @@ public class JingleRtpConnection extends AbstractJingleConnection implements Web
case SESSION_INITIALIZED: case SESSION_INITIALIZED:
acceptCallFromSessionInitialized(); acceptCallFromSessionInitialized();
break; break;
case ACCEPTED:
Log.w(Config.LOGTAG,id.account.getJid().asBareJid()+": the call has already been accepted with another client. UI was just lagging behind");
break;
case PROCEED:
case SESSION_ACCEPTED:
Log.w(Config.LOGTAG,id.account.getJid().asBareJid()+": the call has already been accepted. user probably double tapped the UI");
break;
default: default:
throw new IllegalStateException("Can not accept call from " + this.state); throw new IllegalStateException("Can not accept call from " + this.state);
} }