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
|
||||
else:
|
||||
request_reply = self.channel.ask(request)
|
||||
if request_reply == KILL:
|
||||
if request_reply is None or request_reply == KILL:
|
||||
return
|
||||
elif isinstance(request_reply, flow.Response):
|
||||
request = False
|
||||
|
Loading…
Reference in New Issue
Block a user