Mercurial > hg > Applications > TreeVNC
comparison src/viewer_swing/java/com/glavsoft/viewer/ViewerInterface.java @ 605:b1ace1c5d37a
fix wait
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 18 Feb 2020 21:47:17 +0900 |
parents | 668ff8c17f46 |
children |
comparison
equal
deleted
inserted
replaced
604:668ff8c17f46 | 605:b1ace1c5d37a |
---|---|
142 FindRoot getBcast = new FindRoot(rfb.acceptPort, cp); | 142 FindRoot getBcast = new FindRoot(rfb.acceptPort, cp); |
143 rfb.createRootSelectionPanel(cp, getBcast); | 143 rfb.createRootSelectionPanel(cp, getBcast); |
144 getBcast.findRoot(); | 144 getBcast.findRoot(); |
145 // wait for RootSelection | 145 // wait for RootSelection |
146 try { | 146 try { |
147 cp.wait(); | 147 cp.waitTreeVNCServer(); |
148 } catch (InterruptedException e) { | 148 } catch (InterruptedException e) { |
149 System.out.println("any thread interrupt when wait for FindRoot " + e.getMessage()); | 149 System.out.println("any thread interrupt when wait for FindRoot " + e.getMessage()); |
150 } | 150 } |
151 } | 151 } |
152 } | 152 } |