Skip to content

Commit

Permalink
Bugfix: remove missed reference to command_succeeded
Browse files Browse the repository at this point in the history
  • Loading branch information
englehardt committed Aug 23, 2019
1 parent d1eb54c commit 24c1925
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions automation/TaskManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,6 @@ def _issue_command(self, browser, command_sequence, condition=None):
browser.current_timeout = timeout
# passes off command and waits for a success (or failure signal)
browser.command_queue.put(command)
command_succeeded = 0 # 1 success, 0 error, -1 timeout
command_arguments = command[1] if len(command) > 1 else None

# received reply from BrowserManager, either success or failure
Expand Down Expand Up @@ -520,7 +519,7 @@ def _issue_command(self, browser, command_sequence, condition=None):
if critical_failure:
return

if command_succeeded != 1:
if command_status != 'ok':
with self.threadlock:
self.failurecount += 1
if self.failurecount > self.failure_limit:
Expand Down

0 comments on commit 24c1925

Please sign in to comment.