summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-31 02:23:39 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-31 02:23:39 +0200
commitfaf4627b29619730a0c4e32d9c36932d2ba944c9 (patch)
tree3a390f84d21fa8ac58540cbe1c202ccccde6b4bb /module/plugins
parentFix https://github.com/pyload/pyload/issues/1625 (diff)
downloadpyload-faf4627b29619730a0c4e32d9c36932d2ba944c9.tar.xz
[Addon] Fix unload method not called on exit
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/internal/Addon.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/plugins/internal/Addon.py b/module/plugins/internal/Addon.py
index 3c617f730..ef2932b11 100644
--- a/module/plugins/internal/Addon.py
+++ b/module/plugins/internal/Addon.py
@@ -25,7 +25,7 @@ def threaded(fn):
class Addon(Plugin):
__name__ = "Addon"
__type__ = "hook" #@TODO: Change to `addon` in 0.4.10
- __version__ = "0.01"
+ __version__ = "0.02"
__status__ = "testing"
__config__ = [] #: [("name", "type", "desc", "default")]
@@ -157,6 +157,7 @@ class Addon(Plugin):
#: Deprecated method, use `exit` instead (Remove in 0.4.10)
def coreExiting(self, *args, **kwargs):
+ self.unload(*args, **kwargs) #@TODO: Fix in 0.4.10
return self.exit(*args, **kwargs)