Optional connection timeout checker

This commit is contained in:
shortcutme 2018-05-31 19:43:39 +02:00
parent 3013ee083d
commit a0b2a8ba74
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 3 additions and 2 deletions

View File

@ -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()