handle existing alarms in 17.1 like new ones with "keep" attribute set

This commit is contained in:
Ralf Becker 2018-08-10 11:36:04 +02:00
parent 560754fdd4
commit 65a699e134

View File

@ -482,7 +482,7 @@ class Asyncservice
// update job before running it, to cope with jobs taking longer then async-frequency
if (($job['next'] = $this->next_run($job['times'])) ||
// keep jobs with keep set (eg. calendar alarms) around
is_array($job['data']) && !empty($job['data']['keep']))
is_array($job['data']) && (!empty($job['data']['keep']) || substr($job['id'], 0, 4) === 'cal:'))
{
if (!$job['next'])
{