mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-19 07:53:54 +01:00
Reduce plugin runtime memory
This commit is contained in:
@@ -206,7 +206,7 @@ impl PluginManager {
|
||||
|
||||
// Boot the plugin
|
||||
let event = timeout(
|
||||
Duration::from_secs(1),
|
||||
Duration::from_secs(2),
|
||||
self.send_to_plugin_and_wait(
|
||||
window_context,
|
||||
&plugin_handle,
|
||||
|
||||
@@ -74,6 +74,7 @@ impl PluginHandle {
|
||||
}
|
||||
|
||||
pub async fn set_boot_response(&self, resp: &BootResponse) {
|
||||
info!("BOOTED PLUGIN {:?}", resp);
|
||||
let mut boot_resp = self.boot_resp.lock().await;
|
||||
*boot_resp = resp.clone();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user