revert(html): remove double raf hls destroy (#754)

This commit is contained in:
rahim
2026-03-05 23:08:53 -08:00
committed by GitHub
parent 3f11424b18
commit dce16ae5fd
+1 -5
View File
@@ -30,11 +30,7 @@ export class HlsVideo extends HlsCustomMedia {
super.disconnectedCallback?.();
if (!this.hasAttribute('keep-alive')) {
requestAnimationFrame(() => {
requestAnimationFrame(() => {
if (!this.isConnected) this.destroy();
});
});
this.destroy();
}
}
}