mirror of
https://github.com/maubot/maubot
synced 2025-08-29 19:00:39 +00:00
Stop requiring super call to activate event handlers in plugin start/stop methods
This commit is contained in:
parent
7e6c51d18f
commit
8b0bd510f9
2 changed files with 12 additions and 4 deletions
|
@ -173,7 +173,7 @@ class PluginInstance:
|
|||
database=self.inst_db, webapp=self.inst_webapp,
|
||||
webapp_url=self.inst_webapp_url)
|
||||
try:
|
||||
await self.plugin.start()
|
||||
await self.plugin.internal_start()
|
||||
except Exception:
|
||||
self.log.exception("Failed to start instance")
|
||||
self.db_instance.enabled = False
|
||||
|
@ -190,7 +190,7 @@ class PluginInstance:
|
|||
self.log.debug("Stopping plugin instance...")
|
||||
self.started = False
|
||||
try:
|
||||
await self.plugin.stop()
|
||||
await self.plugin.internal_stop()
|
||||
except Exception:
|
||||
self.log.exception("Failed to stop instance")
|
||||
self.plugin = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue