Don't save the session twice

pull/5817/head
Chocobozzz 2023-05-15 13:56:00 +02:00
parent a63943feae
commit c08a7f16e7
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 0 deletions

View File

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