mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-13 21:02:15 +00:00
fix error: Failed to execute 'readAsArrayBuffer' on 'FileReader': The object is already busy reading Blobs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user