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
Branches
Tags
No related merge requests found
......@@ -65,7 +65,7 @@ class ZTPlot(Module):
self.run = True
self.max_queue = 3
self.queue = queue.Queue()
self.thread = threading.Thread(target=self.plot)
self.thread = threading.Thread(target=self.plot, deamon=True)
self.thread.start()
def process(self, blob):
......@@ -152,8 +152,6 @@ class ZTPlot(Module):
def finish(self):
self.run = False
if self.thread is not None:
self.thread.stop()
def main():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment