Socket Fixed

This commit is contained in:
killer069 2021-08-31 00:23:22 +05:30
parent 5596f69114
commit f2d030cdc7

View File

@ -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