diff options
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r-- | module/plugins/Plugin.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index a7ee72fd2..8a26996d0 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -121,12 +121,6 @@ class Plugin(object): def __call__(self): return self.__name__ - def __del__(self): - if hasattr(self, "pyfile"): - del self.pyfile - if hasattr(self, "req"): - del self.req - def setup(self): """ more init stuff if needed """ pass @@ -387,3 +381,11 @@ class Plugin(object): remove(self.lastDownload) self.lastCheck = m return name + + def clean(self): + """ clean everything and remove references """ + if hasattr(self, "pyfile"): + del self.pyfile + if hasattr(self, "req"): + self.req.close() + del self.req
\ No newline at end of file |