diff options
| author | Aram Drevekenin <aram@poor.dev> | 2025-03-06 09:19:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-06 09:19:27 +0100 |
| commit | 2fe960a16dd69b4669e36833a035d556d01bd268 (patch) | |
| tree | 5017aa846b72269ef2bae74a4c622275d9750349 | |
| parent | fix(serialization): stacked panes fixes (#4041) (diff) | |
| download | sl0ppij-2fe960a16dd69b4669e36833a035d556d01bd268.tar.gz sl0ppij-2fe960a16dd69b4669e36833a035d556d01bd268.tar.xz sl0ppij-2fe960a16dd69b4669e36833a035d556d01bd268.zip | |
fix(plugins): prevent paging plugins from cache at runtime (#4044)
| -rw-r--r-- | zellij-server/src/plugins/plugin_loader.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zellij-server/src/plugins/plugin_loader.rs b/zellij-server/src/plugins/plugin_loader.rs index 56ae6786..443dab6a 100644 --- a/zellij-server/src/plugins/plugin_loader.rs +++ b/zellij-server/src/plugins/plugin_loader.rs @@ -529,7 +529,8 @@ impl<'a> PluginLoader<'a> { ); let (_wasm_bytes, cached_path) = self.plugin_bytes_and_cache_path()?; let timer = std::time::Instant::now(); - let module = unsafe { Module::deserialize_file(&self.engine, &cached_path)? }; + let file_in_cache = std::fs::read(&cached_path)?; + let module = unsafe { Module::deserialize(&self.engine, file_in_cache)? }; log::info!( "Loaded plugin '{}' from cache folder at '{}' in {:?}", self.plugin_path.display(), |
