diff options
Diffstat (limited to 'plugin_loader/loader.py')
| -rw-r--r-- | plugin_loader/loader.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin_loader/loader.py b/plugin_loader/loader.py index 48776d51..8460c792 100644 --- a/plugin_loader/loader.py +++ b/plugin_loader/loader.py @@ -85,9 +85,10 @@ class Loader: if not hasattr(module.Plugin, "name"): raise KeyError("Plugin {} has not defined a name".format(file)) if module.Plugin.name in self.plugins: - if hasattr(module.Plugin, "hot_reload") and not module.Plugin.hot_reload: + if hasattr(module.Plugin, "hot_reload") and not module.Plugin.hot_reload and refresh: self.logger.info("Plugin {} is already loaded and has requested to not be re-loaded" .format(module.Plugin.name)) + return else: if hasattr(self.plugins[module.Plugin.name], "task"): self.plugins[module.Plugin.name].task.cancel() |
