scheduler no longer waits for the next event before exiting

This commit is contained in:
Nathan Fritz 2010-11-16 17:58:20 -08:00
parent b8f40eb843
commit 45991e47ee

View file

@ -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 = []