Add back in stderr skipping in Relay
git-svn-id: https://connectbot.googlecode.com/svn/trunk/connectbot@286 df292f66-193f-0410-a5fc-6d59da041ff2master
parent
9821fd17d0
commit
ab7e1271f9
|
@ -137,5 +137,14 @@ public class Relay implements Runnable {
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void logAndDiscard(InputStream stream) throws IOException {
|
||||
int bytesAvail;
|
||||
while ((bytesAvail = stream.available()) > 0) {
|
||||
stream.skip(bytesAvail);
|
||||
Log.d(TAG, String.format("Discarded %d bytes from stderr", bytesAvail));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue