comparison src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java @ 347:1f86df6504b7

don't use clearChildrenTransmission()
author Miwa Oshiro <oshiro1122@gmail.com>
date Thu, 12 Feb 2015 15:48:55 +0900
parents 47e351909227
children 6f67d602b8e9
comparison
equal deleted inserted replaced
345:47e351909227 347:1f86df6504b7
151 break; 151 break;
152 default: 152 default:
153 logger.severe("Unsupported server message. Id = " + messageId); 153 logger.severe("Unsupported server message. Id = " + messageId);
154 } 154 }
155 } catch (TransportException e) { 155 } catch (TransportException e) {
156 logger.severe("Close session: " + e.getMessage()); 156 logger.severe("Close session : ReceiverTask : " + e.getMessage());
157 if(!rfb.isTreeManager() && !(rfb.getTerminationType())) { 157 if(!rfb.isTreeManager() && !(rfb.getTerminationType())) {
158 System.out.println("death parent node, wait connect new parent node."); 158 System.out.println("death parent node, wait connect new parent node.");
159 // close viewer 159 // close viewer
160 ViewerInterface viewer = rfb.getViewer(); 160 ViewerInterface viewer = rfb.getViewer();
161 viewer.setVisible(false); 161 viewer.setVisible(false);
260 rfb.getContext().setRemoteDesktopName(name); 260 rfb.getContext().setRemoteDesktopName(name);
261 rfb.getContext().setInitData(initData); 261 rfb.getContext().setInitData(initData);
262 repaintController.updateRemoteDesktopName(rfb.getContext()); 262 repaintController.updateRemoteDesktopName(rfb.getContext());
263 reader.reset(); 263 reader.reset();
264 // All children multicastqueue should be discarded hear. 264 // All children multicastqueue should be discarded hear.
265 rfb.clearChildrenTransmission(); 265 // rfb.clearChildrenTransmission();
266 rfb.readSendData(length + 20, reader, null, rect); // size of UpdateRectangleMessage with initData. 266 rfb.readSendData(length + 20, reader, null, rect); // size of UpdateRectangleMessage with initData.
267 short id = (short) rect.x; 267 short id = (short) rect.x;
268 visible = (id != rfb.getId()); 268 visible = (id != rfb.getId());
269 } 269 }
270 synchronized (renderer.getLock()) { 270 synchronized (renderer.getLock()) {