From ff71d27c930904c0eead6a4c1b1f7f388fc4a599 Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Thu, 5 Dec 2024 02:04:25 +0000 Subject: [PATCH] Update scheduler.py --- ovos_bus_client/util/scheduler.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ovos_bus_client/util/scheduler.py b/ovos_bus_client/util/scheduler.py index a0044cd..f603339 100644 --- a/ovos_bus_client/util/scheduler.py +++ b/ovos_bus_client/util/scheduler.py @@ -222,9 +222,7 @@ def schedule_event(self, event: str, sched_time: float, LOG.error("Refusing to schedule event, system clock is in the past!") self._dropped_events += 1 return - elif datetime.datetime.fromtimestamp(sched_time) < datetime.datetime.now(): - LOG.error("Refusing to schedule event, it is in the past!") - return + data = data or {} with self.event_lock: # get current list of scheduled times for event, [] if missing