diff --git a/script/RobotTCP.py b/script/RobotTCP.py index e1bf37d..8f73e4b 100644 --- a/script/RobotTCP.py +++ b/script/RobotTCP.py @@ -362,7 +362,7 @@ class RobotTCP(TcpDevice, Stoppable): if len(ev.strip()) >0: self.getLogger().info(ev) self.on_event(ev) - if ((self.current_task is not None) and (self.get_task_status(self.current_task)<=0)): + if (self.current_task is not None) and (self.get_task_status(self.current_task)[0]>=0): self.current_task = None self._update_state() self.setCache({"powered": self.powered,