From d081bb9d0173be34f5784c7b366376492274964d Mon Sep 17 00:00:00 2001 From: Angela Zu Date: Sat, 14 Aug 2021 22:42:16 +0800 Subject: [PATCH] fix bug: sender endlessly sends empty data --- client/scripts/network.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/scripts/network.js b/client/scripts/network.js index da7e96a..eb59901 100644 --- a/client/scripts/network.js +++ b/client/scripts/network.js @@ -465,7 +465,7 @@ class FileChunker { } isFileEnd() { - return this._offset > this._file.size; + return this._offset >= this._file.size; } get progress() {