Client: clear timeout error timer for video watch
authorChocobozzz <florian.bigard@gmail.com>
Tue, 26 Jul 2016 18:50:39 +0000 (20:50 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Wed, 27 Jul 2016 19:21:57 +0000 (21:21 +0200)
client/src/app/videos/video-watch/video-watch.component.ts

index 09255de5d3d2076db05b1acae3946198841053a6..3aaed0487e53ba9748eee3fa9854d593e4a73e58 100644 (file)
@@ -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();