Skip to content

Commit

Permalink
fix(segmentGroups): terminate webworker after exporting
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulHax committed Dec 29, 2023
1 parent 12f770a commit 67d2631
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/store/segmentGroups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit 67d2631

Please sign in to comment.