Expand|Select|Wrap|Line Numbers
- def daemon(self):
- self.continue_hearbeats_lock.acquire()
- self.continue_heartbeats = True
- self.continue_hearbeats_lock.release()
- thrdHandshake = threading.Event()
- threading.Thread(target=self.RunTests,name='Run_Test_Thread')
- while self.continue_heartbeats:
- pass
- def RunTests(self):
- self.createconnection()
- self.closeconnection()
- def closeconnection()
- self.log("Closign connection for device")
- self.connection_handle.close()
11:8:17:910 [DBG][CLEANUP]
11:8:17:910 [DBG]Closing Connection for device
<pexpect.spawn instance at 0xb7b373cc>
Any tips on what I am missing here?