diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-06-09 20:42:43 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-06-09 20:42:43 +1200 |
commit | b1f410c78d95a2c791d4bea461f0cb6aaeb5b59b (patch) | |
tree | fef781e02ec77f96563bec49e19fad8a5badcbef | |
parent | 00c8bef0ff21794e622b7f442408e29c644b7002 (diff) | |
download | mitmproxy-b1f410c78d95a2c791d4bea461f0cb6aaeb5b59b.tar.gz mitmproxy-b1f410c78d95a2c791d4bea461f0cb6aaeb5b59b.tar.bz2 mitmproxy-b1f410c78d95a2c791d4bea461f0cb6aaeb5b59b.zip |
Join thread on test exit to avoid race condition.
-rw-r--r-- | libpathod/test.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libpathod/test.py b/libpathod/test.py index b7475bc9..dcbb65d5 100644 --- a/libpathod/test.py +++ b/libpathod/test.py @@ -20,6 +20,7 @@ class Daemon: def shutdown(self): requests.post("%s/api/shutdown"%self.urlbase, verify=False) + self.thread.join() class PaThread(threading.Thread): |