aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-server/src/plugins/plugin_loader.rs
diff options
context:
space:
mode:
authorhar7an <99636919+har7an@users.noreply.github.com>2025-03-03 09:26:58 +0000
committerGitHub <noreply@github.com>2025-03-03 09:26:58 +0000
commit736d43b138fea4e7bec6dfb6193e1370594886ff (patch)
treed07ac56a57a7e6921faa916131b9f8e0787434f0 /zellij-server/src/plugins/plugin_loader.rs
parentfix(panes): various fixes for rendering stacked panes without pane frames (#4... (diff)
downloadsl0ppij-736d43b138fea4e7bec6dfb6193e1370594886ff.tar.gz
sl0ppij-736d43b138fea4e7bec6dfb6193e1370594886ff.tar.xz
sl0ppij-736d43b138fea4e7bec6dfb6193e1370594886ff.zip
fix(toolchain): Unbreak client startup
This reverts commit 9f900a7325304a06d9e0913a8e661d7bbc86ad04.
Diffstat (limited to 'zellij-server/src/plugins/plugin_loader.rs')
-rw-r--r--zellij-server/src/plugins/plugin_loader.rs3
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 4a79ffb1..56ae6786 100644
--- a/zellij-server/src/plugins/plugin_loader.rs
+++ b/zellij-server/src/plugins/plugin_loader.rs
@@ -638,6 +638,7 @@ impl<'a> PluginLoader<'a> {
.filter_map(|export| export.clone().into_func().map(|_| export.name()))
{
if function_name.ends_with("_worker") {
+ let plugin_config = self.plugin.clone();
let (mut store, instance) =
self.create_plugin_instance_and_wasi_env_for_worker()?;
@@ -648,7 +649,7 @@ impl<'a> PluginLoader<'a> {
.call(&mut store, ())
.with_context(err_context)?;
- let worker = RunningWorker::new(store, instance, &function_name);
+ let worker = RunningWorker::new(store, instance, &function_name, plugin_config);
let worker_sender = plugin_worker(worker);
workers.insert(function_name.into(), worker_sender);
}