aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/shared/auth/auth.service.ts1
-rw-r--r--client/src/app/videos/video-watch/video-watch.component.ts1
2 files changed, 2 insertions, 0 deletions
diff --git a/client/src/app/shared/auth/auth.service.ts b/client/src/app/shared/auth/auth.service.ts
index c57486d9a..a30c79c86 100644
--- a/client/src/app/shared/auth/auth.service.ts
+++ b/client/src/app/shared/auth/auth.service.ts
@@ -123,6 +123,7 @@ export class AuthService {
123 logout() { 123 logout() {
124 // TODO: make an HTTP request to revoke the tokens 124 // TODO: make an HTTP request to revoke the tokens
125 this.user = null; 125 this.user = null;
126
126 AuthUser.flush(); 127 AuthUser.flush();
127 128
128 this.setStatus(AuthStatus.LoggedOut); 129 this.setStatus(AuthStatus.LoggedOut);
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 ada20fc96..239e24c99 100644
--- a/client/src/app/videos/video-watch/video-watch.component.ts
+++ b/client/src/app/videos/video-watch/video-watch.component.ts
@@ -68,6 +68,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
68 ngOnDestroy() { 68 ngOnDestroy() {
69 console.log('Removing video from webtorrent.'); 69 console.log('Removing video from webtorrent.');
70 clearInterval(this.torrentInfosInterval); 70 clearInterval(this.torrentInfosInterval);
71 clearTimeout(this.errorTimer);
71 this.webTorrentService.remove(this.video.magnetUri); 72 this.webTorrentService.remove(this.video.magnetUri);
72 73
73 this.sub.unsubscribe(); 74 this.sub.unsubscribe();