Closedown

This commit is contained in:
gac-S_Changer
2017-03-29 15:36:04 +02:00
parent c0f13a9d4e
commit bcf0481864

View File

@@ -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]>=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,