mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
Fix #1928, @concurrent decorator now works for class methods.
This commit is contained in:
parent
18401dda8f
commit
f9714fbf3e
@ -29,4 +29,7 @@ def concurrent(fn):
|
||||
"script.concurrent (%s)" % fn.__name__,
|
||||
target=run
|
||||
).start()
|
||||
return _concurrent
|
||||
if "." in fn.__qualname__:
|
||||
return staticmethod(_concurrent)
|
||||
else:
|
||||
return _concurrent
|
||||
|
Loading…
Reference in New Issue
Block a user