@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.
@@ -48390,6 +48390,8 @@
48390
48390
  });
48391
48391
  }
48392
48392
  quit() {
48393
+ if (!this.joined)
48394
+ return Promise.resolve(true);
48393
48395
  return new Promise((success, fail) => {
48394
48396
  var _a, _b;
48395
48397
  this.joined = false;
@@ -51115,8 +51117,13 @@
51115
51117
  }
51116
51118
  async exit() {
51117
51119
  /** 退出强制关闭语音(?) */
51118
- await this.$RTC.quit();
51119
- await this.updateStatus(exports.BuiltinEventType.RoomChange, exports.BuiltinActionType.RoomClose, {});
51120
+ try {
51121
+ this.$RTC.quit();
51122
+ await this.updateStatus(exports.BuiltinEventType.RoomChange, exports.BuiltinActionType.RoomClose, {});
51123
+ }
51124
+ catch (e) {
51125
+ console.log(e);
51126
+ }
51120
51127
  return liveController.dispose();
51121
51128
  }
51122
51129
  async connect(options = {}) {