[py] fix inverted logic and flake8 failure
@@ -127,12 +127,11 @@ class Service(object):
return
for x in range(30):
- if self.is_connectable():
+ if not self.is_connectable():
break
else:
time.sleep(1)
-
def stop(self):
"""
Stops the service.
