scheduler no longer waits for the next event before exiting
This commit is contained in:
parent
b8f40eb843
commit
45991e47ee
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue