Skip to content

Commit

Permalink
[py] fix inverted logic and flake8 failure (SeleniumHQ#3346)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmtierney authored and lukeis committed Jan 10, 2017
1 parent bda48e9 commit dcc80b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions py/selenium/webdriver/common/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,11 @@ def send_remote_shutdown_command(self):
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.
Expand Down

0 comments on commit dcc80b8

Please sign in to comment.