diff --git a/source/pyromocc/pyromocc/robot.py b/source/pyromocc/pyromocc/robot.py index 69711a5..c1ffb78 100644 --- a/source/pyromocc/pyromocc/robot.py +++ b/source/pyromocc/pyromocc/robot.py @@ -83,7 +83,7 @@ def connect(self): self.is_connected = self._connect() t0 = time.time() - while not self._has_valid_state() or time.time()-t0 > 5.0: + while not self._has_valid_state() and time.time()-t0 < 5.0: time.sleep(0.1) self.is_connected = self._has_valid_state()