-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change AdbFilterInputStream.read not to wait for more data
The previous AdbFilterInputStream.read function was always waiting for buffer to fill, even if this meant to block for a long time. Now it checks if the next read will block. The one case it still could block, when reading a 0xd (carriage return) is not expected to occur for interactive output (at least as the last character of some input). This removes the need for a separate executeShellRaw method.
- Loading branch information
1 parent
f8c9098
commit b4f5083
Showing
2 changed files
with
10 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters