]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Don't save the session twice
authorChocobozzz <me@florianbigard.com>
Mon, 15 May 2023 11:56:00 +0000 (13:56 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 15 May 2023 11:56:00 +0000 (13:56 +0200)
server/lib/live/live-manager.ts

index aa32a9d522d292e0ccc02b6d34057333f7b7e48b..c78cf82eb41ec11dab1d9d2a7cdd988f14d4e5c1 100644 (file)
@@ -384,6 +384,9 @@ class LiveManager {
   }
 
   private onMuxingFFmpegEnd (videoUUID: string, sessionId: string) {
+    // Session already cleaned up
+    if (!this.videoSessions.has(videoUUID)) return
+
     this.videoSessions.delete(videoUUID)
 
     this.saveEndingSession(videoUUID, null)