GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

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

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):
"""
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.")
Markdown is supported
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