[repo] ensure thread is alive before calling .join. Closes #963580 stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 25 May 2010 12:21:17 +0200
branchstable
changeset 5581 0aae5216f99e
parent 5580 3e9e6dd54ebb
child 5582 3e133b29a1a4
[repo] ensure thread is alive before calling .join. Closes #963580
server/utils.py
--- a/server/utils.py	Tue May 25 12:20:26 2010 +0200
+++ b/server/utils.py	Tue May 25 12:21:17 2010 +0200
@@ -143,7 +143,8 @@
         self._t.cancel()
 
     def join(self):
-        self._t.join()
+        if self._t.isAlive():
+            self._t.join()
 
 
 class RepoThread(Thread):