summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Wieland Hoffmann <themineo@gmail.com> 2012-01-05 20:49:22 +0100
committerGravatar Wieland Hoffmann <themineo@gmail.com> 2012-01-05 20:49:22 +0100
commit4f879e899562e19d8a7fc64f3099dbd301ae421f (patch)
treef5dbfa01ee315dea2562d912e6df1220b8ab68c1
parentUnbreak Ev0InFetcher (diff)
downloadpyload-4f879e899562e19d8a7fc64f3099dbd301ae421f.tar.xz
Only claim to have unloaded a hook after it was unloaded
-rw-r--r--module/HookManager.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/module/HookManager.py b/module/HookManager.py
index 4b24f590a..7057b6ee6 100644
--- a/module/HookManager.py
+++ b/module/HookManager.py
@@ -157,9 +157,8 @@ class HookManager:
if not hook: return
- self.log.debug("Plugin unloaded: %s" % plugin)
-
hook.unload()
+ self.log.debug("Plugin unloaded: %s" % plugin)
#remove periodic call
self.log.debug("Removed callback %s" % self.core.scheduler.removeJob(hook.cb))