Optional connection timeout checker
This commit is contained in:
parent
3013ee083d
commit
a0b2a8ba74
1 changed files with 3 additions and 2 deletions
|
@ -59,9 +59,10 @@ class ConnectionServer(object):
|
|||
if request_handler:
|
||||
self.handleRequest = request_handler
|
||||
|
||||
def start(self):
|
||||
def start(self, check_connections=True):
|
||||
self.running = True
|
||||
self.thread_checker = gevent.spawn(self.checkConnections)
|
||||
if check_connections:
|
||||
self.thread_checker = gevent.spawn(self.checkConnections)
|
||||
CryptConnection.manager.loadCerts()
|
||||
if config.tor != "disabled":
|
||||
self.tor_manager.start()
|
||||
|
|
Loading…
Reference in a new issue