diff src/main/java/jp/ac/u_ryukyu/treevnc/CreateConnectionParam.java @ 141:1fa40e04f099

minor fix
author oc
date Thu, 12 Jun 2014 05:38:36 +0900
parents 8798f36f732b
children d2af9edb1803
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/CreateConnectionParam.java	Wed Jun 11 18:07:20 2014 +0900
+++ b/src/main/java/jp/ac/u_ryukyu/treevnc/CreateConnectionParam.java	Thu Jun 12 05:38:36 2014 +0900
@@ -20,14 +20,8 @@
 	public void findTreeVncRoot() throws InterruptedException {
 		FindRoot getBcast = new FindRoot(rfb.acceptPort,this);
 		getBcast.findRoot();
-
 		// wait for RootSelection
-		Thread runBcast = new Thread (getBcast, "TreeVNC-root-finder");
-		runBcast.start();
-		hostName = getBcast.textAddress();
-		portNumber = Integer.parseInt(getBcast.textPort());
-	    getBcast.interrupt();
-
+		wait();
 	}
 
 	/**