From fb5a889cca8e3b679f5240bc6d9963e55503b6cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 7 Aug 2018 11:25:48 +0200 Subject: [PATCH] main: Break from the receive loop if there was a transport exception. --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 8f9515e..583d1ad 100644 --- a/main.py +++ b/main.py @@ -304,6 +304,7 @@ def receive_cb(server_name, file_descriptor): except (RemoteTransportError, RemoteProtocolError) as e: server.error(str(e)) server.disconnect() + break response = server.client.next_response()