From de9b20f5fc3d75d68e32dd5644f1c44e37e192ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Volkan=20=C5=9Eahin?= Date: Mon, 22 Aug 2016 17:01:09 +0300 Subject: [PATCH] delayed action check fixed --- opt/ahenk/base/plugin/plugin_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opt/ahenk/base/plugin/plugin_manager.py b/opt/ahenk/base/plugin/plugin_manager.py index 363ca82..aaa3e27 100644 --- a/opt/ahenk/base/plugin/plugin_manager.py +++ b/opt/ahenk/base/plugin/plugin_manager.py @@ -81,11 +81,11 @@ class PluginManager(object): mode = InitMode() self.pluginQueueDict[plugin_name].put(mode, 1) - if len(self.delayed_profiles) > 0: + if plugin_name in self.delayed_profiles: self.pluginQueueDict[plugin_name].put(self.delayed_profiles[plugin_name], 1) del self.delayed_profiles[plugin_name] self.logger.debug('[PluginManager] Delayed profile was found for this plugin. It will be run.') - if len(self.delayed_tasks) > 0: + if plugin_name in self.delayed_tasks: self.pluginQueueDict[plugin_name].put(self.delayed_tasks[plugin_name], 1) del self.delayed_tasks[plugin_name] self.logger.debug('[PluginManager] Delayed task was found for this plugin. It will be run.')