1
0
Fork 0

Don't use a delivery interval when using the worker

This commit is contained in:
Michael Vogel 2015-09-12 18:08:03 +02:00
commit 7edce8e266
4 changed files with 13 additions and 1 deletions

View file

@ -60,6 +60,10 @@ function queue_run(&$argv, &$argc){
$interval = ((get_config('system','delivery_interval') === false) ? 2 : intval(get_config('system','delivery_interval')));
// If we are using the worker we don't need a delivery interval
if (get_config("system", "worker"))
$interval = false;
$r = q("select * from deliverq where 1");
if($r) {
foreach($r as $rr) {