scheduler no longer waits for the next event before exiting
This commit is contained in:
parent
b8f40eb843
commit
45991e47ee
@ -149,6 +149,8 @@ class Scheduler(object):
|
||||
if wait <= 0.0:
|
||||
newtask = self.addq.get(False)
|
||||
else:
|
||||
if wait >= 3.0:
|
||||
wait = 3.0
|
||||
newtask = self.addq.get(True, wait)
|
||||
except queue.Empty:
|
||||
cleanup = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user