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.

Merge request reports

Loading
+1 −1
Changes for gettor/services/__init__.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ class BaseService(internet.TimerService):
        """
        log.info("SERVICE:: Stopping {} service.".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))
        internet.TimerService.stopService(self)
        log.info("SERVICE:: Service stopped.")
Loading