From d8b4a772ee5bcab26531fcf7ef2872774ec3b287 Mon Sep 17 00:00:00 2001 From: Mygod Date: Sun, 21 Jan 2018 11:17:05 -0800 Subject: [PATCH] Reduce debugLog amount in IpNeighbourMonitor --- .../src/main/java/be/mygod/vpnhotspot/net/IpNeighbourMonitor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/net/IpNeighbourMonitor.kt b/mobile/src/main/java/be/mygod/vpnhotspot/net/IpNeighbourMonitor.kt index dcd1ea3a..ec2f1a19 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/net/IpNeighbourMonitor.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/net/IpNeighbourMonitor.kt @@ -68,9 +68,9 @@ class IpNeighbourMonitor private constructor() { } try { monitor.inputStream.bufferedReader().forEachLine { - debugLog(TAG, it) synchronized(neighbours) { val neighbour = IpNeighbour.parse(it) ?: return@forEachLine + debugLog(TAG, it) val changed = if (neighbour.state == IpNeighbour.State.DELETING) neighbours.remove(neighbour.ip) != null else neighbours.put(neighbour.ip, neighbour) != neighbour