From 724fed2931e20498159fd127656d538da678dabe Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 27 Jul 2016 21:15:13 +0200 Subject: Client: fix login state when logout --- client/src/app/shared/auth/auth.service.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client') diff --git a/client/src/app/shared/auth/auth.service.ts b/client/src/app/shared/auth/auth.service.ts index 667fbeb1f..584298fff 100644 --- a/client/src/app/shared/auth/auth.service.ts +++ b/client/src/app/shared/auth/auth.service.ts @@ -107,6 +107,8 @@ export class AuthService { // TODO: make an HTTP request to revoke the tokens this.user = null; User.flush(); + + this.setStatus(AuthStatus.LoggedIn); } refreshAccessToken() { -- cgit v1.2.3 From 71d3476b825571376b06498326d138685493fb62 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 26 Jul 2016 20:50:39 +0200 Subject: Client: clear timeout error timer for video watch --- client/src/app/videos/video-watch/video-watch.component.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'client') 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 { ngOnDestroy() { console.log('Removing video from webtorrent.'); clearInterval(this.torrentInfosInterval); + clearTimeout(this.errorTimer); this.webTorrentService.remove(this.video.magnetUri); this.sub.unsubscribe(); -- cgit v1.2.3 From 052937db8a8d282eccdbdf38d487ed8d85d3c0a7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 26 Jul 2016 22:30:46 +0200 Subject: First draft using only webseed for server --- client/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/package.json b/client/package.json index b01e768b3..a5c5d092b 100644 --- a/client/package.json +++ b/client/package.json @@ -63,7 +63,7 @@ "webpack-md5-hash": "0.0.5", "webpack-merge": "^0.13.0", "webpack-notifier": "^1.3.0", - "webtorrent": "^0.93.2", + "webtorrent": "^0.95.2", "zone.js": "0.6.12" }, "devDependencies": { -- cgit v1.2.3