mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 15:32:19 +03:00
delayed action check fixed
This commit is contained in:
parent
e6677f1c94
commit
de9b20f5fc
1 changed files with 2 additions and 2 deletions
|
@ -81,11 +81,11 @@ class PluginManager(object):
|
||||||
mode = InitMode()
|
mode = InitMode()
|
||||||
self.pluginQueueDict[plugin_name].put(mode, 1)
|
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)
|
self.pluginQueueDict[plugin_name].put(self.delayed_profiles[plugin_name], 1)
|
||||||
del self.delayed_profiles[plugin_name]
|
del self.delayed_profiles[plugin_name]
|
||||||
self.logger.debug('[PluginManager] Delayed profile was found for this plugin. It will be run.')
|
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)
|
self.pluginQueueDict[plugin_name].put(self.delayed_tasks[plugin_name], 1)
|
||||||
del self.delayed_tasks[plugin_name]
|
del self.delayed_tasks[plugin_name]
|
||||||
self.logger.debug('[PluginManager] Delayed task was found for this plugin. It will be run.')
|
self.logger.debug('[PluginManager] Delayed task was found for this plugin. It will be run.')
|
||||||
|
|
Loading…
Reference in a new issue