Add back in stderr skipping in Relay

git-svn-id: https://connectbot.googlecode.com/svn/trunk/connectbot@286 df292f66-193f-0410-a5fc-6d59da041ff2
master
Kenny Root 2009-06-12 14:38:38 +00:00
parent 9821fd17d0
commit ab7e1271f9
1 changed files with 9 additions and 0 deletions

View File

@ -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));
}
}
}