From e466544fb942992bbf9c455ad2168dc1b9111d97 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 17 Jun 2021 17:08:47 +0200 Subject: Fix muxing cleanup --- server/lib/live/live-manager.ts | 2 +- server/lib/live/shared/muxing-session.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'server/lib/live') diff --git a/server/lib/live/live-manager.ts b/server/lib/live/live-manager.ts index 1863c0b0c..014cd3fcf 100644 --- a/server/lib/live/live-manager.ts +++ b/server/lib/live/live-manager.ts @@ -160,8 +160,8 @@ class LiveManager { const muxingSession = this.muxingSessions.get(sessionId) if (muxingSession) { + // Muxing session will fire and event so we correctly cleanup the session muxingSession.abort() - muxingSession.destroy() this.muxingSessions.delete(sessionId) } diff --git a/server/lib/live/shared/muxing-session.ts b/server/lib/live/shared/muxing-session.ts index 7788eea2d..eb2007b29 100644 --- a/server/lib/live/shared/muxing-session.ts +++ b/server/lib/live/shared/muxing-session.ts @@ -60,8 +60,6 @@ class MuxingSession extends EventEmitter { private readonly videoUUID: string private readonly saveReplay: boolean - private toto: Buffer - private readonly lTags: LoggerTagsFn private segmentsToProcessPerPlaylist: { [playlistId: string]: string[] } = {} -- cgit v1.2.3