mirror of
https://github.com/RobinLinus/snapdrop.git
synced 2025-05-16 07:30:12 -07:00
fix error: Failed to execute 'readAsArrayBuffer' on 'FileReader': The object is already busy reading Blobs
This commit is contained in:
parent
2e0619fbba
commit
7bb4c1916a
@ -448,7 +448,8 @@ class FileChunker {
|
|||||||
this._offset += chunk.byteLength;
|
this._offset += chunk.byteLength;
|
||||||
this._partitionSize += chunk.byteLength;
|
this._partitionSize += chunk.byteLength;
|
||||||
this._onChunk(chunk);
|
this._onChunk(chunk);
|
||||||
if (this._isPartitionEnd() || this.isFileEnd()) {
|
if (this.isFileEnd()) return;
|
||||||
|
if (this._isPartitionEnd()) {
|
||||||
this._onPartitionEnd(this._offset);
|
this._onPartitionEnd(this._offset);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user