Quellcode durchsuchen

android: handle exception when unregistering account

Pixel C devices have been seen crashing here, oh well.
master
Saúl Ibarra Corretgé vor 5 Jahren
Ursprung
Commit
5ef0f527f9

+ 6
- 1
android/sdk/src/main/java/org/jitsi/meet/sdk/RNConnectionService.java Datei anzeigen

@@ -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) {

Laden…
Abbrechen
Speichern