mirror of
https://github.com/RobinLinus/snapdrop.git
synced 2025-05-15 23:20:11 -07:00
Merge pull request #519 from MahmoudAboelazm/fix_FileReader_error
fix error: Failed to execute 'readAsArrayBuffer' on 'FileReader': The…
This commit is contained in:
commit
15f28e4a77
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user