mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-06 04:32:40 +00:00
Timer issues fixed - 0.9.9
This commit is contained in:
@@ -117,7 +117,7 @@ export class Stream {
|
||||
private per_sec_bytes : number;
|
||||
private content_length : number;
|
||||
private video_url : string;
|
||||
private timer : NodeJS.Timer;
|
||||
private timer : NodeJS.Timer | null;
|
||||
private cookie : string;
|
||||
private data_ended : boolean;
|
||||
private playing_count : number;
|
||||
@@ -162,9 +162,10 @@ export class Stream {
|
||||
}
|
||||
|
||||
private cleanup(){
|
||||
clearInterval(this.timer)
|
||||
clearInterval(this.timer as NodeJS.Timer)
|
||||
this.request?.unpipe(this.stream)
|
||||
this.request?.destroy()
|
||||
this.timer = null
|
||||
this.request = null
|
||||
this.url = ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user