From 0dbdb4a143f6e4f2b08c5a38a597d5a1c49a109c Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Tue, 9 Aug 2022 21:06:33 +0200 Subject: fix: don't pass unzip job to event loop (#136) For some reason this broke installation of plugins when another specific plugin was present (vibrantDeck) --- backend/browser.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'backend') diff --git a/backend/browser.py b/backend/browser.py index bf89b430..1261c057 100644 --- a/backend/browser.py +++ b/backend/browser.py @@ -97,13 +97,7 @@ class PluginBrowser: res_zip = BytesIO(data) with ProcessPoolExecutor() as executor: logger.debug("Unzipping...") - ret = await get_event_loop().run_in_executor( - executor, - self._unzip_to_plugin_dir, - res_zip, - name, - hash - ) + ret = self._unzip_to_plugin_dir(res_zip, name, hash) if ret: logger.info(f"Installed {name} (Version: {version})") await inject_to_tab("SP", "window.syncDeckyPlugins()") -- cgit v1.2.3