mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
proxy.py: Catch channel.ask() returning None when terminating
This commit is contained in:
parent
be1377850e
commit
d9cc6f1dd6
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user