diff --git a/platypush/backend/joystick/jstest.py b/platypush/backend/joystick/jstest.py index d4d2a54d81..7e404cb92c 100644 --- a/platypush/backend/joystick/jstest.py +++ b/platypush/backend/joystick/jstest.py @@ -97,7 +97,7 @@ class JoystickJstestBackend(Backend): def _wait_ready(self): self.logger.info(f'Waiting for joystick device on {self.device}') - while not self.should_stop() or not os.path.exists(self.device): + while not self.should_stop() and not os.path.exists(self.device): time.sleep(1) if self.should_stop():