Skip to content

Commit

Permalink
fix unloading
Browse files Browse the repository at this point in the history
  • Loading branch information
binarykitchen committed Dec 12, 2024
1 parent 0491887 commit f6ae7f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/wrappers/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,12 +452,12 @@ class Container extends Despot {

this.unloadChildren(params);
this.hide();

} catch (exc) {
this.emit("ERROR", { exc });
} finally {
Despot.removeAllListeners();

this.built = this.submitted = false;
} catch (exc) {
this.emit("ERROR", { exc });
}
}

Expand Down
1 change: 0 additions & 1 deletion src/wrappers/visuals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ class Visuals extends Despot {

this.options.logger.debug(`Visuals: unload(${e ? pretty(e) : ""})`);

Despot.removeAllListeners();
this.recorder.unload(params);
this.recorderInsides.unload();
this.replay.unload(params);
Expand Down

0 comments on commit f6ae7f7

Please sign in to comment.