]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/live/live-manager.ts
Fix stucked HLS player
[github/Chocobozzz/PeerTube.git] / server / lib / live / live-manager.ts
index 206e30d7df9155b1a840f5f01933325203f7bb51..649ad5195eb3d27a1b75b4e1b87ab9cd8c992048 100644 (file)
@@ -483,6 +483,8 @@ class LiveManager {
 
   private async saveEndingSession (videoId: number, error: LiveVideoError | null) {
     const liveSession = await VideoLiveSessionModel.findCurrentSessionOf(videoId)
+    if (!liveSession) return
+
     liveSession.endDate = new Date()
     liveSession.error = error