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)