소스 검색

android: handle exception when unregistering account

Pixel C devices have been seen crashing here, oh well.
j8
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…
취소
저장