@realsee/live 0.6.11 → 0.6.12

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.
package/dist/index.es.js CHANGED
@@ -1154,14 +1154,13 @@ class yr extends ue {
1154
1154
  */
1155
1155
  o(this, "exit", async () => {
1156
1156
  var e;
1157
- if (this._clearLiveData(), this.state !== x.OPEN)
1158
- return !0;
1157
+ this._clearLiveData();
1159
1158
  try {
1160
1159
  await ((e = this.$RTC) == null ? void 0 : e.quit());
1161
1160
  } catch (i) {
1162
1161
  O.warn(i);
1163
1162
  }
1164
- return await this._controller.close();
1163
+ return this.state !== x.OPEN ? !0 : await this._controller.close();
1165
1164
  });
1166
1165
  /**
1167
1166
  * 关闭带看房间