aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/live
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-15 13:56:00 +0200
committerChocobozzz <me@florianbigard.com>2023-05-15 13:56:00 +0200
commitc08a7f16e72767f7ffdcdb8d66be419f56452f1b (patch)
tree32616b2dc144bf827363cf12547086a391e085c8 /server/lib/live
parenta63943feaeae0fa5f66a06b676de558b86f03299 (diff)
downloadPeerTube-c08a7f16e72767f7ffdcdb8d66be419f56452f1b.tar.gz
PeerTube-c08a7f16e72767f7ffdcdb8d66be419f56452f1b.tar.zst
PeerTube-c08a7f16e72767f7ffdcdb8d66be419f56452f1b.zip
Don't save the session twice
Diffstat (limited to 'server/lib/live')
-rw-r--r--server/lib/live/live-manager.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/lib/live/live-manager.ts b/server/lib/live/live-manager.ts
index aa32a9d52..c78cf82eb 100644
--- a/server/lib/live/live-manager.ts
+++ b/server/lib/live/live-manager.ts
@@ -384,6 +384,9 @@ class LiveManager {
384 } 384 }
385 385
386 private onMuxingFFmpegEnd (videoUUID: string, sessionId: string) { 386 private onMuxingFFmpegEnd (videoUUID: string, sessionId: string) {
387 // Session already cleaned up
388 if (!this.videoSessions.has(videoUUID)) return
389
387 this.videoSessions.delete(videoUUID) 390 this.videoSessions.delete(videoUUID)
388 391
389 this.saveEndingSession(videoUUID, null) 392 this.saveEndingSession(videoUUID, null)