diff --git a/arduino-core/src/cc/arduino/packages/discoverers/NetworkDiscovery.java b/arduino-core/src/cc/arduino/packages/discoverers/NetworkDiscovery.java index 502193153..8619a92f0 100644 --- a/arduino-core/src/cc/arduino/packages/discoverers/NetworkDiscovery.java +++ b/arduino-core/src/cc/arduino/packages/discoverers/NetworkDiscovery.java @@ -162,7 +162,7 @@ public class NetworkDiscovery implements Discovery, ServiceListener, Runnable { @Override public List listDiscoveredBoards() { - synchronized (reachableBoardPorts) { + synchronized (reachableBoardPorts) { return getBoardPortsDiscoveredWithJmDNS(); } } @@ -176,8 +176,8 @@ public class NetworkDiscovery implements Discovery, ServiceListener, Runnable { public void setReachableBoardPorts(List newReachableBoardPorts) { synchronized (reachableBoardPorts) { - this.reachableBoardPorts.clear(); - this.reachableBoardPorts.addAll(newReachableBoardPorts); + reachableBoardPorts.clear(); + reachableBoardPorts.addAll(newReachableBoardPorts); } }