Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Client: clear timeout error timer for video watch

Chocobozzz71d3476b8255
diff --git a/client/src/app/videos/video-watch/video-watch.component.ts b/client/src/app/videos/video-watch/video-watch.component.ts
index 09255de5d3..3aaed0487e 100644
--- a/client/src/app/videos/video-watch/video-watch.component.ts
+++ b/client/src/app/videos/video-watch/video-watch.component.ts
@@ -77,6 +77,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
ngOnDestroy() {
console.log('Removing video from webtorrent.');
clearInterval(this.torrentInfosInterval);
+ clearTimeout(this.errorTimer);
this.webTorrentService.remove(this.video.magnetUri);
this.sub.unsubscribe();