MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / stopTor

Method stopTor

src/Tor/TorManager.py:122–128  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

120 return self.tor_process and self.tor_process.pid and self.tor_process.poll() is None
121
122 def stopTor(self):
123 self.log.debug("Stopping...")
124 try:
125 if self.isSubprocessRunning():
126 self.request("SIGNAL SHUTDOWN")
127 except Exception as err:
128 self.log.error("Error stopping Tor: %s" % err)
129
130 def connect(self):
131 if not self.enabled:

Callers

nothing calls this directly

Calls 3

isSubprocessRunningMethod · 0.95
requestMethod · 0.95
errorMethod · 0.80

Tested by

no test coverage detected