Changed semantics of stream, more IO limiting code.

This commit is contained in:
Michael Jumper
2010-09-11 01:02:15 -07:00
parent a1124923f2
commit e05a2e5f79
3 changed files with 35 additions and 39 deletions

View File

@@ -133,7 +133,7 @@ public class GuacamoleClient extends Client {
try {
// While we're blocking, or input is available
do {
for (;;) {
// If past threshold, resize buffer before reading
if (usedLength > buffer.length/2) {
@@ -176,14 +176,13 @@ public class GuacamoleClient extends Client {
}
} while (input.ready()); // End read loop
} // End read loop
}
catch (IOException e) {
throw new GuacamoleException(e);
}
return null;
}
}