diff options
-rw-r--r-- | paramiko/transport.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/paramiko/transport.py b/paramiko/transport.py index 08c8340d..b61e82c4 100644 --- a/paramiko/transport.py +++ b/paramiko/transport.py @@ -512,7 +512,10 @@ class Transport (threading.Thread, ClosingContextManager): if e is not None: raise e raise SSHException('Negotiation failed.') - if event.is_set() or (timeout is not None and time.time() >= max_time): + if ( + event.is_set() or + (timeout is not None and time.time() >= max_time) + ): break def start_server(self, event=None, server=None): |