mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-28 11:12:38 +01:00
Fix deadlock on getting the focused window
This commit is contained in:
1 parent
4c6684623f
commit
503b7f1c87
7 files changed
+37
-30
No files matched your search
@@ -214,13 +214,13 @@ impl PluginRuntimeGrpcServer {
|
||||
let msg = format!("Failed to find plugin for {plugin_name}");
|
||||
Err(PluginNotFoundErr(msg))
|
||||
}
|
||||
|
||||
|
||||
pub async fn send(&self, payload: &InternalEventPayload, plugin_ref_id: &str, reply_id: Option<String>)-> Result<()> {
|
||||
let plugin = self.plugin_by_ref_id(plugin_ref_id).await?;
|
||||
let event = plugin.build_event_to_send(payload, reply_id);
|
||||
plugin.send(&event).await
|
||||
}
|
||||
|
||||
|
||||
|
||||
pub async fn send_to_plugin(
|
||||
&self,
|
||||
|
||||
Reference in new issue
Block a user