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
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")