mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-06 04:32:40 +00:00
Socket Fixed
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user