def stopService(self): # stopService will call stop_instance if the worker was up. yield AbstractLatentWorker.stopService(self) # we cleanup our thread and session (or reactor.stop will hang) if self.client is not None: self.client.close() self.client = None if self.threadPool is not None: yield self.threadPool.stop() self.threadPool = None
def stopService(self): # stopService will call stop_instance if the worker was up. yield AbstractLatentWorker.stopService(self) yield self.maybeDeleteSingletons()