Commit 21645db1 authored by Cecylia Bocovich's avatar Cecylia Bocovich
Browse files

Delete service instance during shutdown

Before we were calling a non-existent shutdown function. These instances
already have __del__ functions so we can just call those instead.
parent 390120a0
...@@ -57,7 +57,7 @@ class BaseService(internet.TimerService): ...@@ -57,7 +57,7 @@ class BaseService(internet.TimerService):
""" """
log.info("SERVICE:: Stopping {} service.".format(self.name)) log.info("SERVICE:: Stopping {} service.".format(self.name))
log.debug("SERVICE:: Calling shutdown on {}".format(self.name)) log.debug("SERVICE:: Calling shutdown on {}".format(self.name))
self.instance.shutdown() del self.instance
log.debug("SERVICE:: Shutdown for {} done".format(self.name)) log.debug("SERVICE:: Shutdown for {} done".format(self.name))
internet.TimerService.stopService(self) internet.TimerService.stopService(self)
log.info("SERVICE:: Service stopped.") log.info("SERVICE:: Service stopped.")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment