--- a/scheduler.py Wed Jan 24 00:20:10 2018 +0000 +++ b/scheduler.py Wed Jan 24 09:15:36 2018 +0000 @@ -77,7 +77,7 @@ ev.insert_immediately_after(self._list) self._list=ev else: - self._list.insert_immediately_after(ev) + self._list.insert_after(ev) self._cond.notify() @@ -113,7 +113,7 @@ while self._list and self._list.when <= now: ev=self._list - logger.debug("Scheduling event %s" % (ev.name or "(unknown)")) + logger.debug("Scheduler activating %s" % (ev.name or "(unknown)")) # We are only allowed to remove ev from list when ev.cond allows with ev.cond: self._list=ev.next