Fix some nasty bug

This commit is contained in:
Zef Hemel
2022-03-31 17:25:34 +02:00
parent 859657f8b8
commit 4d201efdbb
10 changed files with 82 additions and 46 deletions
+1
View File
@@ -44,6 +44,7 @@ class IFrameWrapper implements WorkerLike {
}
terminate() {
console.log("Terminating iframe sandbox");
window.removeEventListener("message", this.messageListener);
return this.iframe.remove();
}
+1
View File
@@ -87,6 +87,7 @@ export class System<HookT> extends EventEmitter<SystemEvents<HookT>> {
sandboxFactory: SandboxFactory<HookT>
): Promise<Plug<HookT>> {
if (this.plugs.has(name)) {
console.log("Unloading", name);
await this.unload(name);
}
// Validate