def stopService(self): log.msg("Pulse %s: shutting down" % (hexid(self),)) if self._heartbeat_loop.running: self._heartbeat_loop.stop() self.status.unsubscribe(self) for w in self.watched: w.unsubscribe(self) return StatusPush.stopService(self)
def stopService(self): log.msg("Pulse %s: shutting down" % (hexid(self),)) if self._heartbeat_loop.running: self._heartbeat_loop.stop() self.status.unsubscribe(self) for w in self.watched: w.unsubscribe(self) # Write out any pending events if self.delayed_push: self.delayed_push.cancel() self.delayed_push = None while self.queue.nbItems() > 0: self._do_push() return StatusPush.stopService(self)
def stopService(self): log.msg("Pulse %s: shutting down" % (hexid(self), )) if self._heartbeat_loop.running: self._heartbeat_loop.stop() self.status.unsubscribe(self) for w in self.watched: w.unsubscribe(self) # Write out any pending events if self.delayed_push: self.delayed_push.cancel() self.delayed_push = None while self.queue.nbItems() > 0: self._do_push() return StatusPush.stopService(self)