示例#1
0
文件: runner.py 项目: GenetH/HEAD
    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)
示例#2
0
    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)
示例#3
0
 def stop_callback(self, request=None):
     return srv.StopResponse(True, self.stop())