android: handle exception when unregistering account

Pixel C devices have been seen crashing here, oh well.
This commit is contained in:
Saúl Ibarra Corretgé 2019-12-26 09:10:05 +01:00 committed by Saúl Ibarra Corretgé
parent e60a14d5af
commit 5ef0f527f9
1 changed files with 6 additions and 1 deletions

View File

@ -113,7 +113,12 @@ class RNConnectionService extends ReactContextBaseJavaModule {
} catch (Exception e) {
JitsiMeetLogger.e(e, TAG + " error in startCall");
if (tm != null) {
tm.unregisterPhoneAccount(accountHandle);
try {
tm.unregisterPhoneAccount(accountHandle);
} catch (Throwable tr) {
// UnsupportedOperationException: System does not support feature android.software.connectionservice
// was observed here. Ignore.
}
}
ConnectionService.unregisterStartCallPromise(callUUID);
if (e instanceof SecurityException) {