From 4186906f4cd286485f2d13e484aae8ae8a2fa856 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 26 Aug 2021 20:43:27 +0200 Subject: [PATCH] pause hashing as well when parallel uploads is 0 --- copyparty/web/up2k.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/copyparty/web/up2k.js b/copyparty/web/up2k.js index 19baef1e..882cf409 100644 --- a/copyparty/web/up2k.js +++ b/copyparty/web/up2k.js @@ -993,6 +993,9 @@ function up2k_init(subtle) { } function hashing_permitted() { + if (!parallel_uploads) + return false; + if (multitask) { var ahead = st.bytes.hashed - st.bytes.finished; return ahead < 1024 * 1024 * 1024 * 4 &&