From c08a7f16e72767f7ffdcdb8d66be419f56452f1b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 15 May 2023 13:56:00 +0200 Subject: [PATCH] Don't save the session twice --- server/lib/live/live-manager.ts | 3 +++ 1 file changed, 3 insertions(+) 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 { } private onMuxingFFmpegEnd (videoUUID: string, sessionId: string) { + // Session already cleaned up + if (!this.videoSessions.has(videoUUID)) return + this.videoSessions.delete(videoUUID) this.saveEndingSession(videoUUID, null)