mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-22 00:28:30 +02:00
Fix error
This commit is contained in:
@@ -30,8 +30,8 @@ use tauri::path::BaseDirectory;
|
|||||||
use tauri::{AppHandle, Manager, Runtime, WebviewWindow, is_dev};
|
use tauri::{AppHandle, Manager, Runtime, WebviewWindow, is_dev};
|
||||||
use tokio::fs::read_dir;
|
use tokio::fs::read_dir;
|
||||||
use tokio::net::TcpListener;
|
use tokio::net::TcpListener;
|
||||||
use tokio::sync::{Mutex, mpsc};
|
|
||||||
use tokio::sync::mpsc::error::TrySendError;
|
use tokio::sync::mpsc::error::TrySendError;
|
||||||
|
use tokio::sync::{Mutex, mpsc};
|
||||||
use tokio::time::{Instant, timeout};
|
use tokio::time::{Instant, timeout};
|
||||||
use yaak_models::models::Environment;
|
use yaak_models::models::Environment;
|
||||||
use yaak_models::query_manager::QueryManagerExt;
|
use yaak_models::query_manager::QueryManagerExt;
|
||||||
@@ -205,7 +205,12 @@ impl PluginManager {
|
|||||||
plugin: &PluginHandle,
|
plugin: &PluginHandle,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
// Terminate the plugin
|
// Terminate the plugin
|
||||||
plugin.terminate(window_context).await?;
|
self.send_to_plugin_and_wait(
|
||||||
|
window_context,
|
||||||
|
plugin,
|
||||||
|
&InternalEventPayload::TerminateRequest,
|
||||||
|
)
|
||||||
|
.await?;
|
||||||
|
|
||||||
// Remove the plugin from the list
|
// Remove the plugin from the list
|
||||||
let mut plugins = self.plugins.lock().await;
|
let mut plugins = self.plugins.lock().await;
|
||||||
|
|||||||
Reference in New Issue
Block a user