From b1f410c78d95a2c791d4bea461f0cb6aaeb5b59b Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 9 Jun 2012 20:42:43 +1200 Subject: [PATCH] Join thread on test exit to avoid race condition. --- libpathod/test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/libpathod/test.py b/libpathod/test.py index b7475bc9b..dcbb65d51 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):