Skip to content

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

fix(disconnect) Fix quick disconnect errors

Tudor-Ovidiu Avram1790c71c800d
diff --git a/conference.js b/conference.js
index 5fb3a93eb0..486f6c77c7 100644
--- a/conference.js
+++ b/conference.js
@@ -411,6 +411,10 @@ function disconnect() {
return Promise.resolve();
};
+ if (!connection) {
+ return onDisconnected();
+ }
+
return connection.disconnect().then(onDisconnected, onDisconnected);
}