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
This commit is contained in:
Florent Le Coz 2014-07-05 17:07:02 +02:00
parent 4b0d9a2872
commit dc46286afb

View file

@ -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):