mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +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={}):
|
||||
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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user