proxy.py: Catch channel.ask() returning None when terminating

This commit is contained in:
Matthias Urlichs 2013-06-28 07:53:56 +02:00
parent be1377850e
commit d9cc6f1dd6

View File

@ -216,7 +216,7 @@ class ProxyHandler(tcp.BaseHandler):
return return
else: else:
request_reply = self.channel.ask(request) request_reply = self.channel.ask(request)
if request_reply == KILL: if request_reply is None or request_reply == KILL:
return return
elif isinstance(request_reply, flow.Response): elif isinstance(request_reply, flow.Response):
request = False request = False