Mercurial > hg > Applications > TreeVNC
changeset 347:1f86df6504b7
don't use clearChildrenTransmission()
author | Miwa Oshiro <oshiro1122@gmail.com> |
---|---|
date | Thu, 12 Feb 2015 15:48:55 +0900 (2015-02-12) |
parents | 47e351909227 |
children | 6f67d602b8e9 |
files | src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java src/main/java/com/glavsoft/rfb/protocol/SenderTask.java |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Tue Feb 10 18:18:49 2015 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Thu Feb 12 15:48:55 2015 +0900 @@ -153,7 +153,7 @@ logger.severe("Unsupported server message. Id = " + messageId); } } catch (TransportException e) { - logger.severe("Close session: " + e.getMessage()); + logger.severe("Close session : ReceiverTask : " + e.getMessage()); if(!rfb.isTreeManager() && !(rfb.getTerminationType())) { System.out.println("death parent node, wait connect new parent node."); // close viewer @@ -262,7 +262,7 @@ repaintController.updateRemoteDesktopName(rfb.getContext()); reader.reset(); // All children multicastqueue should be discarded hear. - rfb.clearChildrenTransmission(); +// rfb.clearChildrenTransmission(); rfb.readSendData(length + 20, reader, null, rect); // size of UpdateRectangleMessage with initData. short id = (short) rect.x; visible = (id != rfb.getId());
--- a/src/main/java/com/glavsoft/rfb/protocol/SenderTask.java Tue Feb 10 18:18:49 2015 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/SenderTask.java Thu Feb 12 15:48:55 2015 +0900 @@ -68,9 +68,9 @@ System.out.println("cannot get ClientToServerMessage."); } catch (TransportException e) { System.out.println("cannot send ClientToServerMessage."); - Logger.getLogger(getClass().getName()).severe("Close session: " + e.getMessage()); + Logger.getLogger(getClass().getName()).severe("Close session : SenderTask : " + e.getMessage()); if (isRunning) { - protocolContext.cleanUpSession("Connection closed"); + protocolContext.cleanUpSession("Connection closed : cleanUpSession"); } stopTask(); } catch (Throwable te) {