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:
parent
4b0d9a2872
commit
dc46286afb
1 changed files with 1 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue