diff --git a/src/components/room/widgets/chat/ChatWidgetView.tsx b/src/components/room/widgets/chat/ChatWidgetView.tsx index ac3c933b..ecb45914 100644 --- a/src/components/room/widgets/chat/ChatWidgetView.tsx +++ b/src/components/room/widgets/chat/ChatWidgetView.tsx @@ -149,6 +149,8 @@ export const ChatWidgetView: FC<{}> = props => return () => { worker.postMessage({ action: 'STOP' }); + + worker.terminate(); } }, [ getScrollSpeed, removeHiddenChats, setChatMessages ]);