Fix disabled tor startup
This commit is contained in:
parent
10bab2b6e4
commit
b87ad9cd2f
2 changed files with 3 additions and 1 deletions
|
@ -64,7 +64,7 @@ class ConnectionServer(object):
|
|||
if check_connections:
|
||||
self.thread_checker = gevent.spawn(self.checkConnections)
|
||||
CryptConnection.manager.loadCerts()
|
||||
if config.tor != "disabled":
|
||||
if config.tor != "disable":
|
||||
self.tor_manager.start()
|
||||
if not self.port:
|
||||
self.log.info("No port found, not binding")
|
||||
|
@ -89,6 +89,7 @@ class ConnectionServer(object):
|
|||
self.log.info("StreamServer listen error: %s" % err)
|
||||
|
||||
def stop(self):
|
||||
self.log.debug("Stopping")
|
||||
self.running = False
|
||||
if self.stream_server:
|
||||
self.stream_server.stop()
|
||||
|
|
|
@ -59,6 +59,7 @@ class TorManager(object):
|
|||
self.proxy_port = int(self.proxy_port)
|
||||
|
||||
def start(self):
|
||||
self.log.debug("Starting (Tor: %s)" % config.tor)
|
||||
self.starting = True
|
||||
try:
|
||||
if not self.connect():
|
||||
|
|
Loading…
Reference in a new issue