diff options
Diffstat (limited to 'include/network.php')
-rw-r--r-- | include/network.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/network.php b/include/network.php index f80244f8f..47b04f007 100644 --- a/include/network.php +++ b/include/network.php @@ -1916,10 +1916,13 @@ function do_delivery($deliveries) { $deliver = array(); foreach($deliveries as $d) { + if(! $d) + continue; + $deliver[] = $d; if(count($deliver) >= $deliveries_per_process) { - proc_run('php','include/deliver.php',$deliver); + Zotlabs\Daemon\Master::summon(array('Deliver',$deliver)); $deliver = array(); if($interval) @time_sleep_until(microtime(true) + (float) $interval); @@ -1929,7 +1932,7 @@ function do_delivery($deliveries) { // catch any stragglers if($deliver) - proc_run('php','include/deliver.php',$deliver); + Zotlabs\Daemon\Master::summon(array('Deliver',$deliver)); } |