def stop(self, request=None): stop_time = 0 with self.lock: if self.running: stop_time = self.get_run_time() self.running = False self.paused = False return srv.StopResponse(True, stop_time)
def stop(self, request=None): stop_time = 0 with self.lock: if self.running: stop_time = self.get_run_time() self.running = False self.paused = False self.topics['tts_control'].publish('shutup') return srv.StopResponse(True, stop_time)
def stop_callback(self, request=None): return srv.StopResponse(True, self.stop())