mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +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)`)
|
#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)
|
||||||
|
Loading…
Reference in New Issue
Block a user