improve plug/mod cleanup strategy

This commit is contained in:
Bastian Schroll 2019-10-25 15:36:10 +02:00
parent 9ce4fd7420
commit 512d72e97a
No known key found for this signature in database
GPG key ID: 0AE96912A20E9F5F
5 changed files with 25 additions and 16 deletions

View file

@ -52,8 +52,8 @@ class Plugin:
logging.debug("[%s] onLoad()", pluginName)
self.onLoad()
def __del__(self):
"""!Destructor calls onUnload() directly"""
def _cleanup(self):
"""!Cleanup routine calls onUnload() directly"""
logging.debug("[%s] onUnload()", self._pluginName)
self._pluginsActive.remove(self)
self.onUnload()