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
parent 0a2c161230
commit 7edce8e266
4 changed files with 13 additions and 1 deletions

View file

@ -615,6 +615,10 @@ function notifier_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;
// delivery loop
if(count($r)) {