Revert change of Stream class

This commit is contained in:
슈리튬 2021-09-07 01:32:34 +09:00 committed by GitHub
parent 93ad5a08a3
commit 5a69be22ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,7 +170,6 @@ export class Stream {
this.bytes_count += chunk.length this.bytes_count += chunk.length
if(absolute_bytes > (this.per_sec_bytes * 300) && this.per_sec_bytes !== 0){ if(absolute_bytes > (this.per_sec_bytes * 300) && this.per_sec_bytes !== 0){
stream.destroy() stream.destroy()
stream.unpipe(this.stream)
} }
}) })