diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-07-26 20:50:39 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-07-27 21:21:57 +0200 |
commit | 71d3476b825571376b06498326d138685493fb62 (patch) | |
tree | 8e1da9580940affc664fd6b3bd3f8e797278c522 /client/src/app | |
parent | 724fed2931e20498159fd127656d538da678dabe (diff) | |
download | PeerTube-71d3476b825571376b06498326d138685493fb62.tar.gz PeerTube-71d3476b825571376b06498326d138685493fb62.tar.zst PeerTube-71d3476b825571376b06498326d138685493fb62.zip |
Client: clear timeout error timer for video watch
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/videos/video-watch/video-watch.component.ts | 1 |
1 files changed, 1 insertions, 0 deletions
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 { | |||
77 | ngOnDestroy() { | 77 | ngOnDestroy() { |
78 | console.log('Removing video from webtorrent.'); | 78 | console.log('Removing video from webtorrent.'); |
79 | clearInterval(this.torrentInfosInterval); | 79 | clearInterval(this.torrentInfosInterval); |
80 | clearTimeout(this.errorTimer); | ||
80 | this.webTorrentService.remove(this.video.magnetUri); | 81 | this.webTorrentService.remove(this.video.magnetUri); |
81 | 82 | ||
82 | this.sub.unsubscribe(); | 83 | this.sub.unsubscribe(); |