Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(base/connection): log leave failure reason

paweldomas7704809c4c0c
diff --git a/react/features/base/connection/actions.native.js b/react/features/base/connection/actions.native.js
index 39d9f11a0c..60c5a9eb19 100644
--- a/react/features/base/connection/actions.native.js
+++ b/react/features/base/connection/actions.native.js
@@ -15,6 +15,8 @@ import {
SET_LOCATION_URL
} from './actionTypes';
+const logger = require('jitsi-meet-logger').getLogger(__filename);
+
/**
* The error structure passed to the {@link connectionFailed} action.
*
@@ -322,7 +324,11 @@ export function disconnect() {
promise
= conference_.leave()
- .catch(() => {
+ .catch(error => {
+ logger.warn(
+ 'JitsiConference.leave() rejected with: ',
+ error);
+
// The library lib-jitsi-meet failed to make the
// JitsiConference leave. Which may be because
// JitsiConference thinks it has already left.