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.
This commit is contained in:
parent
55b95c52d6
commit
d2c85ada1b
|
@ -39,13 +39,6 @@ class JitsiMeetUncaughtExceptionHandler implements Thread.UncaughtExceptionHandl
|
||||||
public void uncaughtException(Thread t, Throwable e) {
|
public void uncaughtException(Thread t, Throwable e) {
|
||||||
Log.e(this.getClass().getSimpleName(), "FATAL ERROR", e);
|
Log.e(this.getClass().getSimpleName(), "FATAL ERROR", e);
|
||||||
|
|
||||||
// Terminate all conferences
|
|
||||||
for (BaseReactView view: BaseReactView.getViews()) {
|
|
||||||
if (view instanceof JitsiMeetView) {
|
|
||||||
((JitsiMeetView) view).leave();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Abort all ConnectionService ongoing calls
|
// Abort all ConnectionService ongoing calls
|
||||||
if (AudioModeModule.useConnectionService()) {
|
if (AudioModeModule.useConnectionService()) {
|
||||||
ConnectionService.abortConnections();
|
ConnectionService.abortConnections();
|
||||||
|
|
Loading…
Reference in New Issue