]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/live/shared/muxing-session.ts
Merge branch 'master' into release/3.3.0
[github/Chocobozzz/PeerTube.git] / server / lib / live / shared / muxing-session.ts
index 96f6c2c890adf75ab1450d4aef6e790a59ac6f89..26467f0605face174f6fad83a8fdff8f829110ff 100644 (file)
@@ -135,10 +135,15 @@ class MuxingSession extends EventEmitter {
   }
 
   abort () {
-    if (!this.ffmpegCommand) return false
+    if (!this.ffmpegCommand) return
 
     this.ffmpegCommand.kill('SIGINT')
-    return true
+  }
+
+  destroy () {
+    this.removeAllListeners()
+    this.isAbleToUploadVideoWithCache.clear()
+    this.hasClientSocketInBadHealthWithCache.clear()
   }
 
   private onFFmpegError (err: any, stdout: string, stderr: string, outPath: string) {