Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
android: unregister phone account if startCall fails
Saúl Ibarra Corretgé1a3736bf9852
diff --git a/android/sdk/src/main/java/org/jitsi/meet/sdk/RNConnectionService.java b/android/sdk/src/main/java/org/jitsi/meet/sdk/RNConnectionService.javaindex ca5bd17d46..464a543ff6 100644--- a/android/sdk/src/main/java/org/jitsi/meet/sdk/RNConnectionService.java+++ b/android/sdk/src/main/java/org/jitsi/meet/sdk/RNConnectionService.java@@ -105,13 +105,16 @@ class RNConnectionService extends ReactContextBaseJavaModule {ConnectionService.registerStartCallPromise(callUUID, promise);- try {- TelecomManager tm- = (TelecomManager) ctx.getSystemService(- Context.TELECOM_SERVICE);+ TelecomManager tm = null;+ try {+ tm = (TelecomManager) ctx.getSystemService(Context.TELECOM_SERVICE);tm.placeCall(address, extras);} catch (Exception e) {+ JitsiMeetLogger.e(e, TAG + " error in startCall");+ if (tm != null) {+ tm.unregisterPhoneAccount(accountHandle);+ }ConnectionService.unregisterStartCallPromise(callUUID);promise.reject(e);}