summaryrefslogtreecommitdiff
path: root/plugins/pipe_cmd.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-07-05 17:07:02 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-07-05 17:07:02 +0200
commitdc46286afb951c3220e679c5727ef86840c15364 (patch)
tree28c7ba187b7236306e30b61271144282fc2c9700 /plugins/pipe_cmd.py
parent4b0d9a2872050c704ad39c4228a7dc634ae29554 (diff)
downloadpoezio-dc46286afb951c3220e679c5727ef86840c15364.tar.gz
poezio-dc46286afb951c3220e679c5727ef86840c15364.tar.bz2
poezio-dc46286afb951c3220e679c5727ef86840c15364.tar.xz
poezio-dc46286afb951c3220e679c5727ef86840c15364.zip
Make the thread from the cmd_plugin be a daemon
Without it, poezio never exits when the plugin is loaded Thanks to xunien fix #2542
Diffstat (limited to 'plugins/pipe_cmd.py')
-rw-r--r--plugins/pipe_cmd.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/pipe_cmd.py b/plugins/pipe_cmd.py
index c73bdea5..f554a71d 100644
--- a/plugins/pipe_cmd.py
+++ b/plugins/pipe_cmd.py
@@ -29,6 +29,7 @@ class Plugin(BasePlugin):
raise TypeError
thread = threading.Thread(target=self.main_loop)
+ thread.setDaemon(True)
thread.start()
def main_loop(self):