mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-05 14:25:45 +00:00
improve plug/mod cleanup strategy
This commit is contained in:
parent
9ce4fd7420
commit
512d72e97a
5 changed files with 25 additions and 16 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue