Socket Fixed
This commit is contained in:
parent
5596f69114
commit
f2d030cdc7
@ -183,10 +183,8 @@ export class Stream {
|
|||||||
|
|
||||||
private cleanup(){
|
private cleanup(){
|
||||||
clearTimeout(this.timer as NodeJS.Timer)
|
clearTimeout(this.timer as NodeJS.Timer)
|
||||||
this.socket?.end()
|
this.socket?.destroy()
|
||||||
this.socket?.on('close', () => {
|
this.socket = null
|
||||||
console.log('Socket Closed')
|
|
||||||
})
|
|
||||||
this.timer = null
|
this.timer = null
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.bytes_count = 0
|
this.bytes_count = 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user