@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.
@@ -4821,10 +4821,12 @@ var PHPSandbox = (() => {
4821
4821
  _NotebookInstance_instances = new WeakSet();
4822
4822
  init_fn = function() {
4823
4823
  __privateSet(this, _initPromise, new Promise((resolve, reject) => {
4824
- this.onDidInitialize((result) => {
4824
+ const initializationListener = this.onDidInitialize((result) => {
4825
+ initializationListener.dispose();
4825
4826
  this.initialized = result;
4826
4827
  if (result.type === "error") {
4827
4828
  reject(new NotebookInitError(result.message, result.data));
4829
+ return;
4828
4830
  }
4829
4831
  resolve(result);
4830
4832
  });