Added some more unpiping

This commit is contained in:
Killer069 2021-09-06 23:37:59 +05:30 committed by GitHub
parent 9d2cc09e8c
commit 786bfa40ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,7 @@ export class LiveStreaming{
private cleanup(){ private cleanup(){
clearTimeout(this.timer as NodeJS.Timer) clearTimeout(this.timer as NodeJS.Timer)
clearTimeout(this.dash_timer as NodeJS.Timer) clearTimeout(this.dash_timer as NodeJS.Timer)
this.request?.unpipe(this.stream)
this.request?.destroy() this.request?.destroy()
this.dash_timer = null this.dash_timer = null
this.video_url = '' this.video_url = ''
@ -134,6 +135,7 @@ export class Stream {
private cleanup(){ private cleanup(){
clearTimeout(this.timer as NodeJS.Timer) clearTimeout(this.timer as NodeJS.Timer)
this.request?.unpipe(this.stream)
this.request?.destroy() this.request?.destroy()
this.request = null this.request = null
this.timer = null this.timer = null