mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-30 08:50: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 () =>
|
return () =>
|
||||||
{
|
{
|
||||||
worker.postMessage({ action: 'STOP' });
|
worker.postMessage({ action: 'STOP' });
|
||||||
|
|
||||||
|
worker.terminate();
|
||||||
}
|
}
|
||||||
}, [ getScrollSpeed, removeHiddenChats, setChatMessages ]);
|
}, [ getScrollSpeed, removeHiddenChats, setChatMessages ]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user