From: Chocobozzz Date: Tue, 26 Jul 2016 18:50:39 +0000 (+0200) Subject: Client: clear timeout error timer for video watch X-Git-Tag: v0.0.1-alpha~697^2~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=71d3476b825571376b06498326d138685493fb62;p=oweals%2Fpeertube.git Client: clear timeout error timer for video watch --- 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();