Skip to content

Commit

Permalink
Update scheduler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Dec 5, 2024
1 parent deaaf39 commit ff71d27
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ovos_bus_client/util/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff71d27

Please sign in to comment.