@uxland/primary-shell 5.6.11 → 5.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.js CHANGED
@@ -16439,20 +16439,21 @@ let ExitShellHandler = class {
16439
16439
  this.api = te;
16440
16440
  }
16441
16441
  async handle(te) {
16442
+ const J = te && te.ecapEvent !== void 0 ? te : void 0;
16442
16443
  try {
16443
- const J = this.api.pluginBusyManager.getBusyPluginTasks();
16444
- if (J.length > 0) {
16445
- const { confirmed: X } = await this.askForClose(J);
16446
- if (!X) return;
16444
+ const X = this.api.pluginBusyManager.getBusyPluginTasks();
16445
+ if (X.length > 0) {
16446
+ const { confirmed: re } = await this.askForClose(X);
16447
+ if (!re) return;
16447
16448
  }
16448
16449
  await Promise.race([
16449
16450
  disposePlugins(),
16450
16451
  // S'intenta executar un dispose normal
16451
16452
  this.timeout(5e3)
16452
16453
  // Si passen 5s, es segueix amb l'execució
16453
- ]), disposeShell(), this.emitClose(te);
16454
- } catch (J) {
16455
- this.api.notificationService.error(J.message), this.emitClose(te);
16454
+ ]), disposeShell(), this.emitClose(J);
16455
+ } catch (X) {
16456
+ this.api.notificationService.error(X.message), this.emitClose(J);
16456
16457
  }
16457
16458
  }
16458
16459
  askForClose(te) {