mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Fixed bug in addPeriodicEvent with a name.
This commit is contained in:
parent
8680d464c9
commit
015bb9ef53
@ -97,8 +97,9 @@ class Schedule(drivers.IrcDriver):
|
||||
#debug.printf(`(time.time(), self.schedule)`)
|
||||
while self.schedule and self.schedule[0][0] < time.time():
|
||||
(t, name) = heapq.heappop(self.schedule)
|
||||
self.events[name]()
|
||||
f = self.events[name]
|
||||
del self.events[name]
|
||||
f()
|
||||
|
||||
try:
|
||||
ignore(schedule)
|
||||
|
Loading…
Reference in New Issue
Block a user