Mercurial > hg > Applications > TreeVNC
comparison src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java @ 532:9292035b8d93
fix forloop
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 05 May 2019 15:56:33 +0900 |
parents | fcd833c2e148 |
children | 355954eac478 |
comparison
equal
deleted
inserted
replaced
531:13d3c4341d14 | 532:9292035b8d93 |
---|---|
243 | 243 |
244 int numberOfRectangles; | 244 int numberOfRectangles; |
245 try { | 245 try { |
246 reader.readByte(); // padding | 246 reader.readByte(); // padding |
247 numberOfRectangles = reader.readUInt16(); | 247 numberOfRectangles = reader.readUInt16(); |
248 this.numberOfRectangles = numberOfRectangles; | |
248 if(numberOfRectangles > 3) { | 249 if(numberOfRectangles > 3) { |
249 System.out.println("numberofrectangle : " + numberOfRectangles); | 250 System.out.println("numberofrectangle : " + numberOfRectangles); |
250 if (rfb.getViewer().getUseMulticast()){ | 251 if (rfb.getViewer().getUseMulticast()){ |
251 return; // Discard invalid packet | 252 return; // Discard invalid packet |
252 } | 253 } |