mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-07-08 13:55:14 +02:00
Fix deadlock
This commit is contained in:
@@ -240,9 +240,6 @@ impl PluginManager {
|
|||||||
plugins.retain(|p| p.dir != dir);
|
plugins.retain(|p| p.dir != dir);
|
||||||
plugins.push(plugin_handle.clone());
|
plugins.push(plugin_handle.clone());
|
||||||
|
|
||||||
// Add the new plugin
|
|
||||||
self.plugins.lock().await.push(plugin_handle.clone());
|
|
||||||
|
|
||||||
let _ = match event.payload {
|
let _ = match event.payload {
|
||||||
InternalEventPayload::BootResponse(resp) => resp,
|
InternalEventPayload::BootResponse(resp) => resp,
|
||||||
_ => return Err(UnknownEventErr),
|
_ => return Err(UnknownEventErr),
|
||||||
|
|||||||
Reference in New Issue
Block a user