diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-07-31 20:44:42 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-07-31 20:44:42 +0200 |
commit | b06286d2d6693931e7956dba10c07073e69b5909 (patch) | |
tree | e195016b9b58b4c0c3e996ffb3a0cb234cafc217 /module/HookManager.py | |
parent | daily commit (diff) | |
download | pyload-b06286d2d6693931e7956dba10c07073e69b5909.tar.xz |
some changes
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: |