Mercurial > hg > Applications > TreeVNC
changeset 585:f07cae18a806
fix
author | riono <e165729@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 09 Feb 2020 04:34:32 +0900 |
parents | 583ee48d735b |
children | 06c41278c783 |
files | src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEDecoder.java |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEDecoder.java Sun Feb 09 02:03:59 2020 +0900 +++ b/src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEDecoder.java Sun Feb 09 04:34:32 2020 +0900 @@ -158,7 +158,7 @@ int span = offset - prevoffset; deflater.setInput(bytes, prevoffset, span); do { - int deflateSize = deflater.deflate(c1, Deflater. SYNC_FLUSH); + deflater.deflate(c1, Deflater.SYNC_FLUSH); if (!deflater.needsInput()) { // packet full flushDeflator(); @@ -227,9 +227,8 @@ private void flushDeflator() { c1.limit(c1.limit() + MARGIN); - //deflater.deflate(c1, Deflater.FULL_FLUSH); - deflater.deflate(c1, Deflater.SYNC_FLUSH); - long bytesRead = deflater.getBytesRead(); + deflater.deflate(c1, Deflater.FULL_FLUSH); + deflater.getBytesRead(); if (c1.remaining()==0) { System.out.println("Multicast packet overrun."); }