From 85d975edc6dd40291793ed7a6e4a8b176cbe9940 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 15 May 2021 23:50:23 +0200 Subject: [PATCH] Logic typo --- platypush/backend/joystick/jstest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/backend/joystick/jstest.py b/platypush/backend/joystick/jstest.py index d4d2a54d8..7e404cb92 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():