mirror of
https://github.com/project-gauntlet/gauntlet.git
synced 2025-12-23 10:35:53 +00:00
Fix panic when stopping disabled plugin
This commit is contained in:
parent
468013397d
commit
2bb6355f0c
1 changed files with 4 additions and 1 deletions
|
|
@ -332,7 +332,10 @@ impl ApplicationManager {
|
|||
pub async fn remove_plugin(&self, plugin_id: PluginId) -> anyhow::Result<()> {
|
||||
tracing::info!(target = "plugin", "Removing plugin with id: {:?}", plugin_id);
|
||||
|
||||
self.stop_plugin(plugin_id.clone()).await;
|
||||
let running = self.run_status_holder.is_plugin_running(&plugin_id);
|
||||
if running {
|
||||
self.stop_plugin(plugin_id.clone()).await;
|
||||
}
|
||||
self.db_repository.remove_plugin(&plugin_id.to_string()).await?;
|
||||
self.search_index.remove_for_plugin(plugin_id)?;
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue