mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 15:40:51 +01:00
Fix web worker that wasnt terminating
This commit is contained in:
parent
a893f89066
commit
abf11af448
@ -149,6 +149,8 @@ export const ChatWidgetView: FC<{}> = props =>
|
||||
return () =>
|
||||
{
|
||||
worker.postMessage({ action: 'STOP' });
|
||||
|
||||
worker.terminate();
|
||||
}
|
||||
}, [ getScrollSpeed, removeHiddenChats, setChatMessages ]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user