diff options
Diffstat (limited to 'pyload/AddonManager.py')
-rw-r--r-- | pyload/AddonManager.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pyload/AddonManager.py b/pyload/AddonManager.py index 75ff4ebc9..682fdc780 100644 --- a/pyload/AddonManager.py +++ b/pyload/AddonManager.py @@ -140,7 +140,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 |