diff options
| author | TrainDoctor <traindoctor@protonmail.com> | 2022-11-13 18:14:27 -0800 |
|---|---|---|
| committer | TrainDoctor <traindoctor@protonmail.com> | 2022-12-10 14:25:20 -0800 |
| commit | 91d1bc8a78ee5d63b07572d1262d9c260d6be5fe (patch) | |
| tree | fe7bd2e6779e0468f2d13f2943569f43dbe5546b /backend/main.py | |
| parent | ea35af2050f8a556457ee4d87bb89f0d6a673867 (diff) | |
| download | decky-loader-91d1bc8a78ee5d63b07572d1262d9c260d6be5fe.tar.gz decky-loader-91d1bc8a78ee5d63b07572d1262d9c260d6be5fe.zip | |
Improvements to install of remote binaries, and start backend reloading
Diffstat (limited to 'backend/main.py')
| -rw-r--r-- | backend/main.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/backend/main.py b/backend/main.py index c144c13a..2b986a95 100644 --- a/backend/main.py +++ b/backend/main.py @@ -91,6 +91,7 @@ class PluginManager: chown_plugin_dir() self.loop.create_task(self.loader_reinjector()) self.loop.create_task(self.load_plugins()) + self.loop.create_task(self.reload_plugin_backends()) self.web_app.on_startup.append(startup) @@ -116,6 +117,13 @@ class PluginManager: self.plugin_loader.import_plugins() # await inject_to_tab("SP", "window.syncDeckyPlugins();") + async def reload_plugin_backend(self, name): + await self.wait_for_server() + if name in self.loader.plugins: + self.loader.plugins[name].stop() + self.loader.plugins.pop(name, None) + + async def loader_reinjector(self): while True: tab = None |
