From 1ee0b252b10f5b27536f5a8a87f6f3369c9d630f Mon Sep 17 00:00:00 2001
From: Tamas Gal <tgal@km3net.de>
Date: Mon, 14 Jan 2019 13:42:18 +0100
Subject: [PATCH] Run plotter as daemon

---
 scripts/ztplot.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/scripts/ztplot.py b/scripts/ztplot.py
index bc26416..2e2d174 100755
--- a/scripts/ztplot.py
+++ b/scripts/ztplot.py
@@ -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():
-- 
GitLab