aboutsummaryrefslogtreecommitdiffstats
path: root/include/hubloc.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-12-12 09:03:49 +0000
committerMario <mario@mariovavti.com>2022-12-12 09:03:49 +0000
commite3a19469eb6940249ad87662399d14dbf2a79847 (patch)
treee793f2476b550eb93bb141143876e2019dd44021 /include/hubloc.php
parent45f8e43be425b9718aa9ac819256ea407af900f0 (diff)
downloadvolse-hubzilla-e3a19469eb6940249ad87662399d14dbf2a79847.tar.gz
volse-hubzilla-e3a19469eb6940249ad87662399d14dbf2a79847.tar.bz2
volse-hubzilla-e3a19469eb6940249ad87662399d14dbf2a79847.zip
bring back poll and delivery interval
Diffstat (limited to 'include/hubloc.php')
-rw-r--r--include/hubloc.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/hubloc.php b/include/hubloc.php
index 016d82f23..edd452dd3 100644
--- a/include/hubloc.php
+++ b/include/hubloc.php
@@ -155,8 +155,8 @@ function remove_obsolete_hublocs() {
logger('remove_obsolete_hublocs: removing ' . count($r) . ' hublocs.');
- //$interval = ((get_config('system', 'delivery_interval') !== false)
- //? intval(get_config('system', 'delivery_interval')) : 2 );
+ $interval = ((get_config('system', 'delivery_interval') !== false)
+ ? intval(get_config('system', 'delivery_interval')) : 2 );
foreach($r as $rr) {
q("update hubloc set hubloc_deleted = 1 where hubloc_id = %d",
@@ -168,8 +168,10 @@ function remove_obsolete_hublocs() {
);
if($x) {
Master::Summon(array('Notifier', 'refresh_all', $x[0]['channel_id']));
- //if($interval)
- //@time_sleep_until(microtime(true) + (float) $interval);
+
+ if($interval) {
+ @time_sleep_until(microtime(true) + (float) $interval);
+ }
}
}
}