Fixed some seek issues

This commit is contained in:
killer069
2022-01-19 09:29:30 +05:30
parent c4d56b6c1f
commit 062a0e7851
2 changed files with 4 additions and 4 deletions

View File

@@ -148,7 +148,7 @@ export class SeekStream {
this.timer.reuse();
return this.seek();
}
const bytes = this.stream.seek();
const bytes = this.stream.seek(this.content_length);
if (bytes instanceof Error) {
this.stream.emit('error', bytes);
this.bytes_count = 0;