mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
fix #267
This commit is contained in:
parent
221bbb7369
commit
9cba4f8d39
@ -106,9 +106,11 @@ class Script:
|
|||||||
def _handle_concurrent_reply(fn, o, args=[], kwargs={}):
|
def _handle_concurrent_reply(fn, o, args=[], kwargs={}):
|
||||||
reply = o.reply
|
reply = o.reply
|
||||||
o.reply = controller.DummyReply()
|
o.reply = controller.DummyReply()
|
||||||
|
if hasattr(reply, "q"):
|
||||||
|
o.reply.q = reply.q
|
||||||
def run():
|
def run():
|
||||||
fn(*args, **kwargs)
|
fn(*args, **kwargs)
|
||||||
reply(o)
|
reply()
|
||||||
threading.Thread(target=run, name="ScriptThread").start()
|
threading.Thread(target=run, name="ScriptThread").start()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user