From 7bb4c1916a59552c6380f266649397efc36c8c25 Mon Sep 17 00:00:00 2001 From: MahmoudAboelazm Date: Fri, 21 Oct 2022 02:54:14 +0200 Subject: [PATCH] fix error: Failed to execute 'readAsArrayBuffer' on 'FileReader': The object is already busy reading Blobs --- client/scripts/network.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }