Browse Source

fix: guard for cases where user hits leave before being connected to the room

Co-authored-by: Tudor-Ovidiu Avram <tudor.potecaru@8x8.com>
master
Potecaru Tudor 5 years ago
parent
commit
fd11c36bc3
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      conference.js

+ 1
- 1
conference.js View File

2829
     leaveRoomAndDisconnect() {
2829
     leaveRoomAndDisconnect() {
2830
         APP.store.dispatch(conferenceWillLeave(room));
2830
         APP.store.dispatch(conferenceWillLeave(room));
2831
 
2831
 
2832
-        if (room.isJoined()) {
2832
+        if (room && room.isJoined()) {
2833
             return room.leave().then(disconnect, disconnect);
2833
             return room.leave().then(disconnect, disconnect);
2834
         }
2834
         }
2835
 
2835
 

Loading…
Cancel
Save