mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-05-04 22:54:15 +02:00
Fix plugin runtime (response fn) deadlock
This commit is contained in:
@@ -291,8 +291,8 @@ impl PluginManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async fn send_and_wait(&self, payload: &InternalEventPayload) -> Result<Vec<InternalEvent>> {
|
async fn send_and_wait(&self, payload: &InternalEventPayload) -> Result<Vec<InternalEvent>> {
|
||||||
self.send_to_plugins_and_wait(payload, self.plugins.lock().await.clone())
|
let plugins = { self.plugins.lock().await.clone() };
|
||||||
.await
|
self.send_to_plugins_and_wait(payload, plugins).await
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn send_to_plugins_and_wait(
|
async fn send_to_plugins_and_wait(
|
||||||
|
|||||||
Reference in New Issue
Block a user