mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Fix error thrown by player after player is unmounted
This commit is contained in:
parent
083df79ae6
commit
23b5468ed4
@ -288,6 +288,13 @@ export const OwncastPlayer: FC<OwncastPlayerProps> = ({ source, online }) => {
|
||||
}
|
||||
}, [clockSkew]);
|
||||
|
||||
useEffect(
|
||||
() => () => {
|
||||
stopLatencyCompensator();
|
||||
},
|
||||
[],
|
||||
);
|
||||
|
||||
return (
|
||||
<div style={{ display: 'grid' }}>
|
||||
{online && (
|
||||
|
Loading…
x
Reference in New Issue
Block a user