#2803: fix wrong invocation of heappush in seldom-reached code.
Thanks to Matt Harden.
This commit is contained in:
parent
d063240d91
commit
ea823a866c
|
@ -117,7 +117,7 @@ class scheduler:
|
|||
action(*argument)
|
||||
delayfunc(0) # Let other threads run
|
||||
else:
|
||||
heapq.heappush(event)
|
||||
heapq.heappush(q, event)
|
||||
|
||||
@property
|
||||
def queue(self):
|
||||
|
|
Loading…
Reference in New Issue