Skip to content
Snippets Groups Projects
Commit 722a0405 authored by David Vasek's avatar David Vasek Committed by Daniel Salzman
Browse files

events: don't replan user events that haven't been processed yet

parent e067ded0
Branches
Tags
1 merge request!1472catalog: "never" expire interpreted catalog zones automatically
Pipeline #101593 passed with stages
in 6 minutes and 9 seconds
......@@ -351,7 +351,8 @@ void _zone_events_schedule_at(zone_t *zone, ...)
}
time_t current = event_get_time(events, type);
if (planned == 0 || current == 0 || planned < current) {
if (current == 0 || (planned == 0 && !events->forced[type]) ||
(planned > 0 && planned < current)) {
event_set_time(events, type, planned);
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment