summaryrefslogtreecommitdiffstats
path: root/sources/schedule.c
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2020-05-13 15:44:28 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-06-02 12:32:36 +0200
commita63ec0ba7fa08b4f6e9c209d1f42e2d33366575a (patch)
treecc194b252471d4aee6369624e3f59a4435a916fe /sources/schedule.c
parent6c7d827904fb33d172d625ed10baadb9be342a22 (diff)
#942 Fix immediate procedures
New versions of ogAdmServer handle pending commands in a different way. Instant procedures uses the old way, now unsupported, so we need to adapt instant procedures. This commit adapts instant procedures to work with the new pending commands implementation.
Diffstat (limited to 'sources/schedule.c')
-rw-r--r--sources/schedule.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sources/schedule.c b/sources/schedule.c
index 6f886d3..64d10d9 100644
--- a/sources/schedule.c
+++ b/sources/schedule.c
@@ -14,13 +14,7 @@ static LIST_HEAD(schedule_list);
static void og_schedule_add(struct og_schedule *new)
{
struct og_schedule *schedule, *next;
- time_t now;
- now = time(NULL);
- if (new->seconds < now) {
- free(new);
- return;
- }
list_for_each_entry_safe(schedule, next, &schedule_list, list) {
if (new->seconds < schedule->seconds) {
list_add_tail(&new->list, &schedule->list);