Added some more unpiping
This commit is contained in:
parent
9d2cc09e8c
commit
786bfa40ee
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user