Skip to content

Commit

Permalink
Add comment about ignoring CLSE responses
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffLIrion committed Oct 1, 2019
1 parent 54a9f3b commit f13d422
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adb_shell/adb_device.py
Expand Up @@ -407,6 +407,8 @@ def _read_until(self, local_id, remote_id, expected_cmds, timeout_s, total_timeo
if time.time() - start > total_timeout_s:
raise exceptions.InvalidCommandError('Never got one of the expected responses (%s)' % expected_cmds, cmd, (timeout_s, total_timeout_s))

# Ignore CLSE responses to previous commands
# https://github.com/JeffLIrion/adb_shell/pull/14
if cmd != constants.CLSE:
raise exceptions.InvalidResponseError('Incorrect remote id, expected {0} got {1}'.format(remote_id, remote_id2))

Expand Down

0 comments on commit f13d422

Please sign in to comment.