Trust that shutdown signal will kill tor

This commit is contained in:
shortcutme 2018-04-29 02:45:39 +02:00
parent cafb9ddcf4
commit 4fa43fdf60
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -115,10 +115,6 @@ class TorManager(object):
tor_started = self.tor_process.poll() is None
if tor_started:
self.request("SIGNAL SHUTDOWN")
if sys.platform.startswith("win"):
subprocess.call(['taskkill', '/F', '/T', '/PID', str(self.tor_process.pid)]) # Also kill sub-processes
else:
self.tor_process.terminate()
except Exception, err:
self.log.error("Error stopping Tor: %s" % err)