# HG changeset patch # User tobaru # Date 1582094405 -32400 # Node ID 2f8fa0919582d1c7f19755adaf1267f207ac7294 # Parent 8f270c9d0d4ce509fffeb89f66b15e23e1792612 null point diff -r 8f270c9d0d4c -r 2f8fa0919582 src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java --- a/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Wed Feb 19 15:03:02 2020 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Wed Feb 19 15:40:05 2020 +0900 @@ -88,7 +88,7 @@ Decoder decoder = zdecdoder; if (rfb.isTreeManager()) zdecdoder.setMuticast(true); - if (rfb.multicastBlocking) zdecdoder.setBroadcast(true); + if (rfb.multicastBlocking || rfb.getViewer().getUseMulticast()) zdecdoder.setBroadcast(true); decoders.setDecoderByType(EncodingType.ZLIB, decoder); decoders.setDecoderByType(EncodingType.ZRLE, decoder); ZRLEESender zdecdoder1 = new ZRLEESender(rfb); diff -r 8f270c9d0d4c -r 2f8fa0919582 src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java --- a/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Wed Feb 19 15:03:02 2020 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Wed Feb 19 15:40:05 2020 +0900 @@ -940,11 +940,13 @@ } public synchronized void startBroadcast(ReceiverTask receiverTask) { - BroadcastRFBListener rfbBroadcastListener = viewer.getRfbBroadcastListener(); - rfbBroadcastListener.init(this, receiverTask); - if (!isTreeManager && !rfbBroadcastListener.isStopFlag()) { - Thread rfbBroadcast = new Thread(rfbBroadcastListener, "RFBBroadcast"); - rfbBroadcast.start(); + if (viewer.getUseMulticast()) { + BroadcastRFBListener rfbBroadcastListener = viewer.getRfbBroadcastListener(); + rfbBroadcastListener.init(this, receiverTask); + if (!isTreeManager && !rfbBroadcastListener.isStopFlag()) { + Thread rfbBroadcast = new Thread(rfbBroadcastListener, "RFBBroadcast"); + rfbBroadcast.start(); + } } }