Client: clear timeout error timer for video watch
This commit is contained in:
parent
724fed2931
commit
71d3476b82
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue