From 521f9742c1441d6d267380f09ce75322dc5a150d Mon Sep 17 00:00:00 2001 From: Thomas Lynch Date: Wed, 21 Sep 2022 21:32:33 +1000 Subject: [PATCH] revert back to 2 thread max again because turns out firefox didnt get better, just tor limits to 1 thread anyway --- haproxy/js/challenge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haproxy/js/challenge.js b/haproxy/js/challenge.js index 651d257..88a3e3b 100644 --- a/haproxy/js/challenge.js +++ b/haproxy/js/challenge.js @@ -16,7 +16,7 @@ const powFinished = new Promise((resolve, reject) => { const [_userkey, challenge, _signature] = combined.split("#"); const start = Date.now(); if (window.Worker && crypto.subtle) { - const threads = Math.min(4,Math.ceil(window.navigator.hardwareConcurrency/2)); + const threads = Math.min(2,Math.ceil(window.navigator.hardwareConcurrency/2)); let finished = false; const messageHandler = (e) => { if (finished) { return; }