add safeguard

This commit is contained in:
Thomas Kriechbaumer 2016-03-27 13:15:57 +02:00
parent 04cb099b15
commit dfcfa6263c

View File

@ -231,7 +231,8 @@ class HttpLayer(Layer):
six.reraise(ProtocolException, ProtocolException(
"Error in HTTP connection: %s" % repr(e)), sys.exc_info()[2])
finally:
flow.live = False
if flow:
flow.live = False
def get_request_from_client(self):
request = self.read_request()