Browse Source

fix(disconnect) Fix quick disconnect errors

master^2
Tudor-Ovidiu Avram 4 years ago
parent
commit
1790c71c80
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      conference.js

+ 4
- 0
conference.js View File

@@ -411,6 +411,10 @@ function disconnect() {
411 411
         return Promise.resolve();
412 412
     };
413 413
 
414
+    if (!connection) {
415
+        return onDisconnected();
416
+    }
417
+
414 418
     return connection.disconnect().then(onDisconnected, onDisconnected);
415 419
 }
416 420
 

Loading…
Cancel
Save