mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-09 22:51:22 +00:00
Changed semantics of stream, more IO limiting code.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user