Mercurial > hg > Applications > TreeVNC
changeset 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 | 82755931810c |
files | src/main/java/jp/ac/u_ryukyu/treevnc/CreateConnectionParam.java src/viewer_swing/java/com/glavsoft/viewer/ViewerInterface.java |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/CreateConnectionParam.java Tue Feb 18 16:56:12 2020 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/CreateConnectionParam.java Tue Feb 18 21:47:17 2020 +0900 @@ -80,4 +80,7 @@ notify(); } + public synchronized void waitTreeVNCServer() throws InterruptedException { + wait(); + } }
--- a/src/viewer_swing/java/com/glavsoft/viewer/ViewerInterface.java Tue Feb 18 16:56:12 2020 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/ViewerInterface.java Tue Feb 18 21:47:17 2020 +0900 @@ -144,7 +144,7 @@ getBcast.findRoot(); // wait for RootSelection try { - cp.wait(); + cp.waitTreeVNCServer(); } catch (InterruptedException e) { System.out.println("any thread interrupt when wait for FindRoot " + e.getMessage()); }