From 67d2631cd6000625844015a6e44a62630191fc6d Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Thu, 14 Dec 2023 16:07:33 -0500 Subject: [PATCH] fix(segmentGroups): terminate webworker after exporting --- src/store/segmentGroups.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/store/segmentGroups.ts b/src/store/segmentGroups.ts index fb9929d98..b04238103 100644 --- a/src/store/segmentGroups.ts +++ b/src/store/segmentGroups.ts @@ -60,6 +60,7 @@ const writeImage = async (format: string, image: vtkImageData) => { } const result = await writeImageItk(null, itkImage, `image.${format}`); + result.webWorker?.terminate(); return result.serializedImage.data; };