Mercurial > hg > Applications > TreeVNC
diff src/main/java/jp/ac/u_ryukyu/treevnc/TreeVncCommand.java @ 195:a204b53a30c7
set connectTo localhostname.
author | oc |
---|---|
date | Thu, 26 Jun 2014 19:20:23 +0900 |
parents | f176bffcdc4a |
children | d9d234715853 |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/TreeVncCommand.java Thu Jun 26 15:20:11 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/TreeVncCommand.java Thu Jun 26 19:20:23 2014 +0900 @@ -57,7 +57,7 @@ handleWhereToConnect(port,hostname, myHostName); break; case LOST_PARENT : - handleLostParent(port,hostname); + handleLostParent(port,hostname, myHostName); break; case NEW_NODE : rfb.newClient(connection, os, is); @@ -119,9 +119,10 @@ * if root is not here, clients die themselves. * @param port * @param hostname + * @param myHostName */ - private void handleLostParent(int port, String hostname) { - rfb.getTreeManager().fixLostParent(hostname,port); + private void handleLostParent(int port, String hostname, String myHostName) { + rfb.getTreeManager().fixLostParent(hostname,port,myHostName); } public TreeCommand getCommand () {