瀏覽代碼

android: handle exception when unregistering account

Pixel C devices have been seen crashing here, oh well.
master
Saúl Ibarra Corretgé 5 年之前
父節點
當前提交
5ef0f527f9
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6
    1
      android/sdk/src/main/java/org/jitsi/meet/sdk/RNConnectionService.java

+ 6
- 1
android/sdk/src/main/java/org/jitsi/meet/sdk/RNConnectionService.java 查看文件

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

Loading…
取消
儲存