@realsee/live 0.4.0-beta.5 → 0.4.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -500,6 +500,8 @@ class BrowserRTC4Chime extends CoreRTC {
500
500
  });
501
501
  }
502
502
  quit() {
503
+ if (!this.joined)
504
+ return Promise.resolve(true);
503
505
  return new Promise((success, fail) => {
504
506
  var _a, _b;
505
507
  this.joined = false;
@@ -1502,8 +1504,13 @@ function createLive(options) {
1502
1504
  }
1503
1505
  async exit() {
1504
1506
  /** 退出强制关闭语音(?) */
1505
- await this.$RTC.quit();
1506
- await this.updateStatus(exports.BuiltinEventType.RoomChange, exports.BuiltinActionType.RoomClose, {});
1507
+ try {
1508
+ this.$RTC.quit();
1509
+ await this.updateStatus(exports.BuiltinEventType.RoomChange, exports.BuiltinActionType.RoomClose, {});
1510
+ }
1511
+ catch (e) {
1512
+ console.log(e);
1513
+ }
1507
1514
  return liveController.dispose();
1508
1515
  }
1509
1516
  async connect(options = {}) {