}
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) {