diff --git a/src/connection.py b/src/connection.py index aa93e5d..c660a7f 100644 --- a/src/connection.py +++ b/src/connection.py @@ -115,7 +115,7 @@ class Connection(threading.Thread): logging.debug('Connecting to {}:{}'.format(self.host, self.port)) try: - self.s = socket.create_connection((self.host, self.port)) + self.s = socket.create_connection((self.host, self.port), 10) self.status = 'connected' logging.info('Established TCP connection to {}:{}'.format(self.host, self.port)) except Exception as e: