From bb6083962d81a1e528f89dfbd801327bde164860 Mon Sep 17 00:00:00 2001 From: Marco van Dijk Date: Wed, 15 Nov 2023 00:33:40 +0100 Subject: [PATCH] Fix getting stuck --- client/src/util/orchTester.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/util/orchTester.js b/client/src/util/orchTester.js index 01cc84a..ea00a27 100644 --- a/client/src/util/orchTester.js +++ b/client/src/util/orchTester.js @@ -209,6 +209,7 @@ async function getIP(hostname) { const testOrchestrator = async function (id, target) { if (!id.length || !target.length) { + currentPending--; return; } const origTarget = new URL(target); @@ -245,6 +246,7 @@ const testOrchestrator = async function (id, target) { discoveryResults.err == "insufficient sender reserve" ) { console.log("Ignoring " + id + " due to insufficient sender reserve"); + currentPending--; return; } // Cache results