aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-watch/video-watch.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-07-29 10:32:56 +0200
committerChocobozzz <me@florianbigard.com>2022-07-29 10:32:56 +0200
commit5a9a56b78f6a62b3241f0dff1b8685001a3b3a1d (patch)
treec290f24a6b05dcb57387ad984b51de80f353c56f /client/src/app/+videos/+video-watch/video-watch.component.ts
parent37b1d97f226aa83f47cb27eae00f2d2821759457 (diff)
downloadPeerTube-5a9a56b78f6a62b3241f0dff1b8685001a3b3a1d.tar.gz
PeerTube-5a9a56b78f6a62b3241f0dff1b8685001a3b3a1d.tar.zst
PeerTube-5a9a56b78f6a62b3241f0dff1b8685001a3b3a1d.zip
Prevent error on highlighted thread
Diffstat (limited to 'client/src/app/+videos/+video-watch/video-watch.component.ts')
-rw-r--r--client/src/app/+videos/+video-watch/video-watch.component.ts2
1 files changed, 2 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 292ce6441..8d9c08ab3 100644
--- a/client/src/app/+videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/+videos/+video-watch/video-watch.component.ts
@@ -242,6 +242,8 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
242 242
243 if (this.player) this.player.pause() 243 if (this.player) this.player.pause()
244 244
245 this.video = undefined
246
245 const videoObs = this.hooks.wrapObsFun( 247 const videoObs = this.hooks.wrapObsFun(
246 this.videoService.getVideo.bind(this.videoService), 248 this.videoService.getVideo.bind(this.videoService),
247 { videoId }, 249 { videoId },