diff options
Diffstat (limited to 'Zotlabs/Lib/Libsync.php')
-rw-r--r-- | Zotlabs/Lib/Libsync.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Zotlabs/Lib/Libsync.php b/Zotlabs/Lib/Libsync.php index b02ae4c69..2d6d86d78 100644 --- a/Zotlabs/Lib/Libsync.php +++ b/Zotlabs/Lib/Libsync.php @@ -135,10 +135,9 @@ class Libsync { $info['collection_members'] = $r; } - /* + $interval = ((get_config('system', 'delivery_interval') !== false) ? intval(get_config('system', 'delivery_interval')) : 2); - */ logger('Packet: ' . print_r($info, true), LOGGER_DATA, LOG_DEBUG); @@ -171,10 +170,12 @@ class Libsync { /* $total = $total - 1; + */ - if ($interval && $total) + if ($interval) { @time_sleep_until(microtime(true) + (float)$interval); - */ + } + } } |