Explorar el Código

android: fix deadlock in uncaught exception handler

The app is about to crash at that stage so it was a moot point to try to leave
the conference anyway.

Stopping ConnectionServers is still a good idea though, since a crash may leave
the device in a bad state otherwise.
master
Saúl Ibarra Corretgé hace 5 años
padre
commit
d2c85ada1b

+ 0
- 7
android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetUncaughtExceptionHandler.java Ver fichero

@@ -39,13 +39,6 @@ class JitsiMeetUncaughtExceptionHandler implements Thread.UncaughtExceptionHandl
39 39
     public void uncaughtException(Thread t, Throwable e) {
40 40
         Log.e(this.getClass().getSimpleName(), "FATAL ERROR", e);
41 41
 
42
-        // Terminate all conferences
43
-        for (BaseReactView view: BaseReactView.getViews()) {
44
-            if (view instanceof JitsiMeetView) {
45
-                ((JitsiMeetView) view).leave();
46
-            }
47
-        }
48
-
49 42
         // Abort all ConnectionService ongoing calls
50 43
         if (AudioModeModule.useConnectionService()) {
51 44
             ConnectionService.abortConnections();

Loading…
Cancelar
Guardar