Skip to content

Commit

Permalink
added fix mentioned in pull #519 of main repo
Browse files Browse the repository at this point in the history
  • Loading branch information
JustSch committed Oct 22, 2022
1 parent 1c1ac8c commit 81b4dd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/scripts/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,8 @@ class FileChunker {
this._offset += chunk.byteLength;
this._partitionSize += chunk.byteLength;
this._onChunk(chunk);
if (this._isPartitionEnd() || this.isFileEnd()) {
if (this.isFileEnd()) return;
if (this._isPartitionEnd()) {
this._onPartitionEnd(this._offset);
return;
}
Expand Down

1 comment on commit 81b4dd7

@JustSch
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.