Skip to content
This repository was archived by the owner on Feb 14, 2024. It is now read-only.

Commit 4f02207

Browse files
authored
Merge pull request #36 from martinRenou/cleanup_worker
Cleanup worker on dispose
2 parents f396ade + 9084f3e commit 4f02207

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/xeus_server_kernel.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ export class XeusServerKernel implements IKernel {
136136
if (this.isDisposed) {
137137
return;
138138
}
139+
this._worker.terminate();
140+
(this._worker as any) = null;
141+
(this._remote as any) = null;
139142
this._isDisposed = true;
140143
this._disposed.emit(void 0);
141144
}

0 commit comments

Comments
 (0)