Fixed bug in addPeriodicEvent with a name.

This commit is contained in:
Jeremy Fincher 2003-09-22 13:50:59 +00:00
parent 8680d464c9
commit 015bb9ef53

View File

@ -97,8 +97,9 @@ class Schedule(drivers.IrcDriver):
#debug.printf(`(time.time(), self.schedule)`) #debug.printf(`(time.time(), self.schedule)`)
while self.schedule and self.schedule[0][0] < time.time(): while self.schedule and self.schedule[0][0] < time.time():
(t, name) = heapq.heappop(self.schedule) (t, name) = heapq.heappop(self.schedule)
self.events[name]() f = self.events[name]
del self.events[name] del self.events[name]
f()
try: try:
ignore(schedule) ignore(schedule)