mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-12-04 22:06:24 +01:00
Fix plugin runtime (response fn) deadlock
This commit is contained in:
1 parent
c938b62d35
commit
44e5c2b1d7
1 file changed
+2
-2
@@ -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