From 9d33456c8960dd4cf0037dee28b91aa2617e1a45 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Tue, 17 Mar 2026 21:42:28 +0100 Subject: [PATCH] Daemon/Externals: Shorten endless loop If the query towards the hubloc table don't return any entries, the loop would continue without modifying any of the variables that could possibly make the loop end. --- Zotlabs/Daemon/Externals.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Zotlabs/Daemon/Externals.php b/Zotlabs/Daemon/Externals.php index b67a0e286..442ae49aa 100644 --- a/Zotlabs/Daemon/Externals.php +++ b/Zotlabs/Daemon/Externals.php @@ -74,6 +74,8 @@ class Externals { } } + $attempts++; + if (!$url) { continue; } @@ -85,7 +87,6 @@ class Externals { $blacklisted = true; } - $attempts++; // make sure we can eventually break out if somebody blacklists all known sites