catch IllegalStateException around acceptCall()
this can happen when the UI races a call retrection
This commit is contained in:
parent
8a282e2b0a
commit
2e2f9a62b0
1 changed files with 5 additions and 1 deletions
|
@ -147,7 +147,11 @@ public class RtpSessionActivity extends XmppActivity implements XmppConnectionSe
|
||||||
|
|
||||||
private void checkRecorderAndAcceptCall() {
|
private void checkRecorderAndAcceptCall() {
|
||||||
checkMicrophoneAvailability();
|
checkMicrophoneAvailability();
|
||||||
requireRtpConnection().acceptCall();
|
try {
|
||||||
|
requireRtpConnection().acceptCall();
|
||||||
|
} catch (final IllegalStateException e) {
|
||||||
|
Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkMicrophoneAvailability() {
|
private void checkMicrophoneAvailability() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue