@phpsandbox/sdk 0.0.20 → 0.0.23

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.
@@ -4781,10 +4781,12 @@ _initPromise = new WeakMap();
4781
4781
  _NotebookInstance_instances = new WeakSet();
4782
4782
  init_fn = function() {
4783
4783
  __privateSet(this, _initPromise, new Promise((resolve, reject) => {
4784
- this.onDidInitialize((result) => {
4784
+ const initializationListener = this.onDidInitialize((result) => {
4785
+ initializationListener.dispose();
4785
4786
  this.initialized = result;
4786
4787
  if (result.type === "error") {
4787
4788
  reject(new NotebookInitError(result.message, result.data));
4789
+ return;
4788
4790
  }
4789
4791
  resolve(result);
4790
4792
  });