Stop requiring super call to activate event handlers in plugin start/stop methods

This commit is contained in:
Tulir Asokan 2019-07-13 15:48:13 +03:00
parent 7e6c51d18f
commit 8b0bd510f9
2 changed files with 12 additions and 4 deletions

View file

@ -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