mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
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.
This commit is contained in:
@@ -74,6 +74,8 @@ class Externals {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$attempts++;
|
||||||
|
|
||||||
if (!$url) {
|
if (!$url) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -85,7 +87,6 @@ class Externals {
|
|||||||
$blacklisted = true;
|
$blacklisted = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$attempts++;
|
|
||||||
|
|
||||||
// make sure we can eventually break out if somebody blacklists all known sites
|
// make sure we can eventually break out if somebody blacklists all known sites
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user