diff options
Diffstat (limited to 'module/HookManager.py')
-rw-r--r-- | module/HookManager.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/module/HookManager.py b/module/HookManager.py index 9579c74a1..1fd8a5844 100644 --- a/module/HookManager.py +++ b/module/HookManager.py @@ -21,6 +21,7 @@ import traceback from threading import RLock from module.PluginThread import HookThread +from time import time class HookManager(): def __init__(self, core): @@ -60,7 +61,10 @@ class HookManager(): def periodical(self): - pass + for plugin in self.plugins: + if plugin.lastCall + plugin.interval < time(): + plugin.periodical() + plugin.lastCall = time() def coreReady(self): for plugin in self.plugins: |