Cleanup en fixes for live

This commit is contained in:
mt 2019-11-02 21:45:55 +01:00
parent a780818ef8
commit 43c327823e

View file

@ -99,7 +99,7 @@ class CentralManagement():
# #
# #
# self.eventQueue.put(Signal('start', {'ding':'test'})) self.eventQueue.put(Signal('start', {'ding':'test'}))
while self.isRunning.is_set(): while self.isRunning.is_set():
time.sleep(.5) time.sleep(.5)
@ -229,7 +229,7 @@ class CentralManagement():
else: else:
self.logger.warning('DO NOT update status') self.logger.warning('DO NOT update status')
elif signal.name == 'plotter.finished': elif signal.name == 'plotter.finished':
if self.currentHit.submit_page_at: if self.currentHit and self.currentHit.submit_page_at:
self.setLight(False) self.setLight(False)
scan = threading.Thread(target=self.scanImage, name='scan') scan = threading.Thread(target=self.scanImage, name='scan')
scan.start() scan.start()