diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-10-07 10:10:00 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-10-07 10:10:00 +0200 |
commit | aff36eb063573532498979c83be1c279c84f2d53 (patch) | |
tree | 3f79dc7373689f0493e80a6e501225fd0cd7aa26 /client/src | |
parent | c3117f13d599f37693f937865b6e84eb1f72d5c4 (diff) | |
parent | a6375e69668ea42e19531c6bc68dcd37f3f7cbd7 (diff) | |
download | PeerTube-aff36eb063573532498979c83be1c279c84f2d53.tar.gz PeerTube-aff36eb063573532498979c83be1c279c84f2d53.tar.zst PeerTube-aff36eb063573532498979c83be1c279c84f2d53.zip |
Merge branch 'webseed'
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/shared/auth/auth.service.ts | 1 | ||||
-rw-r--r-- | client/src/app/videos/video-watch/video-watch.component.ts | 1 |
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(); |