From faf4627b29619730a0c4e32d9c36932d2ba944c9 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 31 Jul 2015 02:23:39 +0200 Subject: [Addon] Fix unload method not called on exit --- module/plugins/internal/Addon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'module') 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) -- cgit v1.2.3