mirror of https://github.com/Chocobozzz/PeerTube
Fix muxing cleanup
parent
52fb1d97ba
commit
e466544fb9
|
@ -160,8 +160,8 @@ class LiveManager {
|
||||||
|
|
||||||
const muxingSession = this.muxingSessions.get(sessionId)
|
const muxingSession = this.muxingSessions.get(sessionId)
|
||||||
if (muxingSession) {
|
if (muxingSession) {
|
||||||
|
// Muxing session will fire and event so we correctly cleanup the session
|
||||||
muxingSession.abort()
|
muxingSession.abort()
|
||||||
muxingSession.destroy()
|
|
||||||
|
|
||||||
this.muxingSessions.delete(sessionId)
|
this.muxingSessions.delete(sessionId)
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,8 +60,6 @@ class MuxingSession extends EventEmitter {
|
||||||
private readonly videoUUID: string
|
private readonly videoUUID: string
|
||||||
private readonly saveReplay: boolean
|
private readonly saveReplay: boolean
|
||||||
|
|
||||||
private toto: Buffer
|
|
||||||
|
|
||||||
private readonly lTags: LoggerTagsFn
|
private readonly lTags: LoggerTagsFn
|
||||||
|
|
||||||
private segmentsToProcessPerPlaylist: { [playlistId: string]: string[] } = {}
|
private segmentsToProcessPerPlaylist: { [playlistId: string]: string[] } = {}
|
||||||
|
|
Loading…
Reference in New Issue