diff --git a/client/scripts/network.js b/client/scripts/network.js index 7f50e67..838c8c8 100644 --- a/client/scripts/network.js +++ b/client/scripts/network.js @@ -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; }