mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-23 20:00:09 +08:00
fix #267
This commit is contained in:
@@ -106,9 +106,11 @@ class Script:
|
||||
def _handle_concurrent_reply(fn, o, args=[], kwargs={}):
|
||||
reply = o.reply
|
||||
o.reply = controller.DummyReply()
|
||||
if hasattr(reply, "q"):
|
||||
o.reply.q = reply.q
|
||||
def run():
|
||||
fn(*args, **kwargs)
|
||||
reply(o)
|
||||
reply()
|
||||
threading.Thread(target=run, name="ScriptThread").start()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user