fix flow == None errors

This commit is contained in:
Thomas Kriechbaumer 2016-02-01 23:27:17 +01:00
parent ab3543ba4d
commit af6c257131

View File

@ -188,7 +188,7 @@ class HttpLayer(Layer):
self.log("response", "debug", [repr(flow.response)])
flow = self.channel.ask("response", flow)
if flow == Kill:
if not flow or flow == Kill:
raise Kill()
self.send_response_to_client(flow)