summaryrefslogtreecommitdiffstats
path: root/sources/ogAdmServer.c
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2020-05-12 14:26:43 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-06-02 12:32:36 +0200
commit6c7d827904fb33d172d625ed10baadb9be342a22 (patch)
treed69b0face185de620a836c3bf62ad2e68615421b /sources/ogAdmServer.c
parent894d8332f44f64f21d43f5c8e6ae2d2207351ec3 (diff)
#942 ignore stale schedules on start
Diffstat (limited to 'sources/ogAdmServer.c')
-rw-r--r--sources/ogAdmServer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sources/ogAdmServer.c b/sources/ogAdmServer.c
index 86b48d8..85d1968 100644
--- a/sources/ogAdmServer.c
+++ b/sources/ogAdmServer.c
@@ -3807,6 +3807,7 @@ static int og_dbi_schedule_get(void)
time.hours = dbi_result_get_uint(result, "horas");
time.am_pm = dbi_result_get_uint(result, "ampm");
time.minutes = dbi_result_get_uint(result, "minutos");
+ time.on_start = true;
og_schedule_create(schedule_id, task_id, OG_SCHEDULE_TASK,
&time);