mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
Join thread on test exit to avoid race condition.
This commit is contained in:
parent
00c8bef0ff
commit
b1f410c78d
@ -20,6 +20,7 @@ class Daemon:
|
|||||||
|
|
||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
requests.post("%s/api/shutdown"%self.urlbase, verify=False)
|
requests.post("%s/api/shutdown"%self.urlbase, verify=False)
|
||||||
|
self.thread.join()
|
||||||
|
|
||||||
|
|
||||||
class PaThread(threading.Thread):
|
class PaThread(threading.Thread):
|
||||||
|
Loading…
Reference in New Issue
Block a user