aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Poller.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 /Zotlabs/Daemon/Poller.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 'Zotlabs/Daemon/Poller.php')
-rw-r--r--Zotlabs/Daemon/Poller.php24
1 files changed, 11 insertions, 13 deletions
diff --git a/Zotlabs/Daemon/Poller.php b/Zotlabs/Daemon/Poller.php
index 5bf8d3a02..b43b814f7 100644
--- a/Zotlabs/Daemon/Poller.php
+++ b/Zotlabs/Daemon/Poller.php
@@ -17,12 +17,13 @@ class Poller {
}
}
-/*
+
$interval = intval(get_config('system', 'poll_interval'));
- if (!$interval)
+ if (!$interval) {
$interval = ((get_config('system', 'delivery_interval') === false) ? 3 : intval(get_config('system', 'delivery_interval')));
+ }
-
+/*
// Check for a lockfile. If it exists, but is over an hour old, it's stale. Ignore it.
$lockfile = 'store/[data]/poller';
if ((file_exists($lockfile)) && (filemtime($lockfile) > (time() - 3600))
@@ -106,10 +107,10 @@ class Poller {
if ($t < $x) {
Master::Summon(['Onepoll', $contact['abook_id']]);
- /*
- if ($interval)
+
+ if ($interval) {
@time_sleep_until(microtime(true) + (float)$interval);
- */
+ }
}
continue;
@@ -173,11 +174,9 @@ class Poller {
Master::Summon(['Onepoll', $contact['abook_id']]);
- /*
- if ($interval)
+ if ($interval) {
@time_sleep_until(microtime(true) + (float)$interval);
- */
-
+ }
}
}
@@ -201,10 +200,9 @@ class Poller {
Master::Summon(['Onedirsync', $rr['ud_id']]);
- /*
- if ($interval)
+ if ($interval) {
@time_sleep_until(microtime(true) + (float)$interval);
- */
+ }
}
}
}