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: guard for cases where user hits leave before being connected to the room

Potecaru Tudorfd11c36bc34d
diff --git a/conference.js b/conference.js
index a0bfc18814..37a3456d3e 100644
--- a/conference.js
+++ b/conference.js
@@ -2829,7 +2829,7 @@ export default {
leaveRoomAndDisconnect() {
APP.store.dispatch(conferenceWillLeave(room));
- if (room.isJoined()) {
+ if (room && room.isJoined()) {
return room.leave().then(disconnect, disconnect);
}