Close the results socket to ensure messages are sent

This commit is contained in:
Jonathan Kamens
2012-08-21 13:53:03 -04:00
parent 08a55088a6
commit a7bb4b53d8
+2
View File
@@ -172,6 +172,8 @@ class SimulatedTrading(object):
def close(self):
log.info("Closing Simulation: {id}".format(id=self.sim_id))
if self.results_socket:
self.results_socket.close()
if self.proc and self.send_sighup:
ppid = os.getppid()
if self.success: