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 09255de5d..3aaed0487 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();