Skip to content

Commit

Permalink
fix: don't pass unzip job to event loop (#136)
Browse files Browse the repository at this point in the history
For some reason this broke installation of plugins when another specific
plugin was present (vibrantDeck)
  • Loading branch information
Scrumplex authored Aug 9, 2022
1 parent c9e9c45 commit 0dbdb4a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions backend/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,7 @@ async def _install(self, artifact, name, version, hash):
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()")
Expand Down

0 comments on commit 0dbdb4a

Please sign in to comment.