Skip to content
Snippets Groups Projects
Commit 1ee0b252 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Run plotter as daemon

parent 9ceabf00
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,7 @@ class ZTPlot(Module): ...@@ -65,7 +65,7 @@ class ZTPlot(Module):
self.run = True self.run = True
self.max_queue = 3 self.max_queue = 3
self.queue = queue.Queue() self.queue = queue.Queue()
self.thread = threading.Thread(target=self.plot) self.thread = threading.Thread(target=self.plot, deamon=True)
self.thread.start() self.thread.start()
def process(self, blob): def process(self, blob):
...@@ -152,8 +152,6 @@ class ZTPlot(Module): ...@@ -152,8 +152,6 @@ class ZTPlot(Module):
def finish(self): def finish(self):
self.run = False self.run = False
if self.thread is not None:
self.thread.stop()
def main(): def main():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment