def remove(self, entry):
print("[EPGRefresh] Timer removed " + str(entry))
# avoid re-enqueuing
entry.repeated = False
# abort timer.
# this sets the end time to current time, so timer will be stopped.
entry.abort()
if entry.state != entry.StateEnded:
self.timeChanged(entry)
print("state: ", entry.state)
print("in processed: ", entry in self.processed_timers)
print("in running: ", entry in self.timer_list)
# now the timer should be in the processed_timers list. remove it from there.
self.processed_timers.remove(entry)
评论列表
文章目录