Mercurial > hg > Applications > TreeVNC
changeset 553:214ebc49b5bd
fix
author | e165729 <e165729@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 30 Jan 2020 00:05:40 +0900 |
parents | e912db2ab778 |
children | 1a7cf34b42b2 |
files | src/main/java/jp/ac/u_ryukyu/treevnc/BroadcastRFBListener.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/BroadcastRFBListener.java Wed Jan 29 00:25:42 2020 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/BroadcastRFBListener.java Thu Jan 30 00:05:40 2020 +0900 @@ -58,7 +58,8 @@ while (!stopFlag) { try { byte[] buf = new byte[BufSize]; - DatagramPacket recvPacket = new DatagramPacket(buf, BufSize); soc.receive(recvPacket); + DatagramPacket recvPacket = new DatagramPacket(buf, BufSize); + soc.receive(recvPacket); String hostname = recvPacket.getAddress().getHostAddress(); byte[] reply = recvPacket.getData(); int len = recvPacket.getLength();