From 0e1d7e579e121ff5df9f68c493768160e84049a9 Mon Sep 17 00:00:00 2001 From: marcsello Date: Fri, 9 Apr 2021 00:19:10 +0200 Subject: [PATCH] Fixed crash on plugin unload --- single_ursim_control/plugin_repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/single_ursim_control/plugin_repository.py b/single_ursim_control/plugin_repository.py index 9eab164..24f40f6 100644 --- a/single_ursim_control/plugin_repository.py +++ b/single_ursim_control/plugin_repository.py @@ -53,6 +53,6 @@ class PluginRepository: def close(self): self._command_compilers = {} - for plugin_name, plugin_instance in self._loaded_plugins: + for plugin_name, plugin_instance in self._loaded_plugins.items(): plugin_instance.close() self._logger.info(f"Unloaded plugin: {plugin_name}")