1
0
Fork 0

Client: clear timeout error timer for video watch

This commit is contained in:
Chocobozzz 2016-07-26 20:50:39 +02:00
parent 724fed2931
commit 71d3476b82

View file

@ -77,6 +77,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
ngOnDestroy() { ngOnDestroy() {
console.log('Removing video from webtorrent.'); console.log('Removing video from webtorrent.');
clearInterval(this.torrentInfosInterval); clearInterval(this.torrentInfosInterval);
clearTimeout(this.errorTimer);
this.webTorrentService.remove(this.video.magnetUri); this.webTorrentService.remove(this.video.magnetUri);
this.sub.unsubscribe(); this.sub.unsubscribe();