server/utils.py
branchstable
changeset 5581 0aae5216f99e
parent 5424 8ecbcbff9777
child 5606 61b28589d33f
equal deleted inserted replaced
5580:3e9e6dd54ebb 5581:0aae5216f99e
   141 
   141 
   142     def cancel(self):
   142     def cancel(self):
   143         self._t.cancel()
   143         self._t.cancel()
   144 
   144 
   145     def join(self):
   145     def join(self):
   146         self._t.join()
   146         if self._t.isAlive():
       
   147             self._t.join()
   147 
   148 
   148 
   149 
   149 class RepoThread(Thread):
   150 class RepoThread(Thread):
   150     """subclass of thread so it auto remove itself from a given list once
   151     """subclass of thread so it auto remove itself from a given list once
   151     executed
   152     executed