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