(self)
| 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: |
nothing calls this directly
no test coverage detected