diff options
| author | WerWolv <werwolv98@gmail.com> | 2022-04-22 18:43:52 +0200 |
|---|---|---|
| committer | WerWolv <werwolv98@gmail.com> | 2022-04-22 18:43:52 +0200 |
| commit | 340ea91d1c000fc934e02d033cc0a3d7feaf5da2 (patch) | |
| tree | 0821f9252352ef42d4719c0ae18d6031c6402ab2 | |
| parent | 3f3f6bd475fe5229d5e28b4e0dc314d27c24c6fe (diff) | |
| download | decky-loader-340ea91d1c000fc934e02d033cc0a3d7feaf5da2.tar.gz decky-loader-340ea91d1c000fc934e02d033cc0a3d7feaf5da2.zip | |
Fixed calling backend functions after restarting steam
| -rw-r--r-- | plugin_loader/main.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugin_loader/main.py b/plugin_loader/main.py index 638457a4..efde3fc9 100644 --- a/plugin_loader/main.py +++ b/plugin_loader/main.py @@ -54,11 +54,19 @@ class PluginManager: loop.default_exception_handler(context) async def loader_reinjector(self): + finished_reinjection = False + while True: await sleep(1) if not await tab_has_element("QuickAccess", "plugin_iframe"): logger.info("Plugin loader isn't present in Steam anymore, reinjecting...") await self.inject_javascript() + finished_reinjection = True + elif finished_reinjection: + finished_reinjection = False + logger.info("Reinjecting successful!") + + self.loop.create_task(self.method_call_listener()) async def inject_javascript(self, request=None): try: |
