main: Break from the receive loop if there was a transport exception.

This commit is contained in:
Damir Jelić 2018-08-07 11:25:48 +02:00
parent a513b82418
commit fb5a889cca

View file

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