From dc46286afb951c3220e679c5727ef86840c15364 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sat, 5 Jul 2014 17:07:02 +0200 Subject: [PATCH] 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 --- plugins/pipe_cmd.py | 1 + 1 file changed, 1 insertion(+) 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):