# HG changeset patch # User e165729 # Date 1580310406 -32400 # Node ID 1a7cf34b42b260b297aedf8f62492649effe116d # Parent 214ebc49b5bdbe078e6c2b6e53d126c90fbe04e2# Parent ff4c1972aa2e409836db742bf7aa582c1401d51c merge diff -r ff4c1972aa2e -r 1a7cf34b42b2 src/main/java/jp/ac/u_ryukyu/treevnc/BroadcastRFBListener.java --- a/src/main/java/jp/ac/u_ryukyu/treevnc/BroadcastRFBListener.java Wed Jan 29 19:40:46 2020 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/BroadcastRFBListener.java Thu Jan 30 00:06:46 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();