Merge branch 'master' of github.com:quantopian/zipline

This commit is contained in:
fawce
2012-04-05 23:54:04 -04:00
+2 -3
View File
@@ -57,7 +57,6 @@ class Simulator(ComponentHost):
self.running = True
return thread
def did_clean_shutdown(self):
return not any([t.isAlive() for t in self.subthreads])
@@ -70,8 +69,6 @@ class Simulator(ComponentHost):
if not self.running:
return
if self.controller:
self.controller.shutdown()
for component in self.components.itervalues():
component.shutdown()
@@ -80,6 +77,8 @@ class Simulator(ComponentHost):
if thread.is_alive():
thread._Thread__stop()
#self.controller.shutdown()
self.running = False
assert self.did_clean_shutdown()