Commit dc46286a authored by louiz’'s avatar louiz’

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
parent 4b0d9a28
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment