Esempio n. 1
0
 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
Esempio n. 2
0
 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
Esempio n. 3
0
 def stopService(self):
     # stopService will call stop_instance if the worker was up.
     yield AbstractLatentWorker.stopService(self)
     yield self.maybeDeleteSingletons()