don't stop threads at each step

This commit is contained in:
David Rose 2008-10-03 04:37:06 +00:00
parent 7cca74a597
commit eebd1864e2

View File

@ -343,10 +343,6 @@ class TaskManager:
chains that are in sub-threads or that have frame budgets chains that are in sub-threads or that have frame budgets
might execute their tasks differently. """ might execute their tasks differently. """
self.__doStep()
self.mgr.stopThreads()
def __doStep(self):
# Replace keyboard interrupt handler during task list processing # Replace keyboard interrupt handler during task list processing
# so we catch the keyboard interrupt but don't handle it until # so we catch the keyboard interrupt but don't handle it until
# after task list processing is complete. # after task list processing is complete.
@ -382,12 +378,12 @@ class TaskManager:
self.resumeFunc() self.resumeFunc()
if self.stepping: if self.stepping:
self.__doStep() self.step()
else: else:
self.running = True self.running = True
while self.running: while self.running:
try: try:
self.__doStep() self.step()
except KeyboardInterrupt: except KeyboardInterrupt:
self.stop() self.stop()
except IOError, ioError: except IOError, ioError: