Exemplo n.º 1
0
 def stop(self):
     begin_time = time.time()
     curr_time = time.time()
     while (curr_time - begin_time < 5):
         time.sleep(0.1)
         curr_time = time.time()
     try:
         Component.stop(self)
         if not ThreadedComponent.stopThread(self, self.TIMEOUT):
             raise CF.Resource.StopError(CF.CF_NOTSET,
                                         "Processing thread did not die")
     except:
         pass
Exemplo n.º 2
0
 def stop(self):
     Component.stop(self)
     if not ThreadedComponent.stopThread(self, self.TIMEOUT):
         raise CF.Resource.StopError(CF.CF_NOTSET,
                                     "Processing thread did not die")
 def stop(self):
     Component.stop(self)
     if not ThreadedComponent.stopThread(self, self.TIMEOUT):
         raise CF.Resource.StopError(CF.CF_NOTSET, "Processing thread did not die")