Skip to content

Commit

Permalink
Revert "IOException thrown by the terminal does not get reset on subs…
Browse files Browse the repository at this point in the history
…equent reads, fixes #270"

This reverts commit 28e36be.
  • Loading branch information
gnodet committed May 24, 2018
1 parent c4c1d97 commit e9f88f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Expand Up @@ -168,7 +168,6 @@ public int read() throws IOException {
} catch (IOException error) {
// expected
}
assertEquals('a', term.input().read());
}

@Test
Expand Down
Expand Up @@ -100,10 +100,8 @@ public synchronized int available() {

@Override
public synchronized int read(long timeout, boolean isPeek) throws IOException {
IOException ioe = ioException;
ioException = null;
if (ioe != null) {
throw ioe;
if (ioException != null) {
throw ioException;
}
// Blocks until more input is available or the reader is closed.
int res = wait(readBuffer, timeout);
Expand Down

0 comments on commit e9f88f7

Please sign in to comment.