Mercurial > hg > Applications > TreeVNC
comparison src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java @ 272:d3a921d16121
fix firstTime.
author | oc |
---|---|
date | Mon, 15 Dec 2014 13:48:19 +0900 |
parents | 2d934eee4f4b |
children | 0f9b3de45fb2 |
comparison
equal
deleted
inserted
replaced
271:13a809ce1212 | 272:d3a921d16121 |
---|---|
216 this.numberOfRectangles = reader.readUInt16(); | 216 this.numberOfRectangles = reader.readUInt16(); |
217 | 217 |
218 if(numberOfRectangles != 1) | 218 if(numberOfRectangles != 1) |
219 System.out.println("numberofrectangle : " + numberOfRectangles); | 219 System.out.println("numberofrectangle : " + numberOfRectangles); |
220 | 220 |
221 if(rfb.isTreeManager() && firstTime) { | 221 if(rfb.isTreeManager() && firstTime) { |
222 if(rfb.checkDelay) { | 222 if(rfb.checkDelay) { |
223 SendCheckDelay sendCheckDelay = new SendCheckDelay(rfb); | 223 SendCheckDelay sendCheckDelay = new SendCheckDelay(rfb); |
224 Thread sendCheckDelayThread = new Thread(sendCheckDelay, "send-check-delay"); | 224 Thread sendCheckDelayThread = new Thread(sendCheckDelay, "send-check-delay"); |
225 sendCheckDelayThread.start(); | 225 sendCheckDelayThread.start(); |
226 this.firstTime = false; | 226 this.firstTime = false; |
235 context.setFbHeight(rfb.fixingSizeHeight); | 235 context.setFbHeight(rfb.fixingSizeHeight); |
236 context.sendMessage(new FramebufferUpdateRequestMessage(0, 0, context.getFbWidth(), context.getFbHeight(), true)); | 236 context.sendMessage(new FramebufferUpdateRequestMessage(0, 0, context.getFbWidth(), context.getFbHeight(), true)); |
237 } | 237 } |
238 }, 0, 100); | 238 }, 0, 100); |
239 } | 239 } |
240 } | 240 this.firstTime = false; |
241 } | |
241 | 242 |
242 while (numberOfRectangles-- > 0) { | 243 while (numberOfRectangles-- > 0) { |
243 FramebufferUpdateRectangle rect = new FramebufferUpdateRectangle(); | 244 FramebufferUpdateRectangle rect = new FramebufferUpdateRectangle(); |
244 rect.fill(reader); | 245 rect.fill(reader); |
245 | 246 |