summaryrefslogtreecommitdiffstats
path: root/pyload/AddonManager.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/AddonManager.py')
-rw-r--r--pyload/AddonManager.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyload/AddonManager.py b/pyload/AddonManager.py
index 7935ff112..d2dd25edc 100644
--- a/pyload/AddonManager.py
+++ b/pyload/AddonManager.py
@@ -139,7 +139,8 @@ class AddonManager:
self.log.debug("Plugin deactivated: %s" % plugin)
#remove periodic call
- self.log.debug("Removed callback %s" % self.core.scheduler.removeJob(addon.cb))
+ if addon.cb:
+ self.log.debug("Removed callback %s" % self.core.scheduler.removeJob(addon.cb))
del self.plugins[addon.__name__]
#remove event listener