From dd2c171bb391f1f60d53ab1c86a93ff1a0cb3452 Mon Sep 17 00:00:00 2001 From: Mygod Date: Wed, 19 Dec 2018 15:38:05 +0800 Subject: [PATCH] Suppress reporting interfaceName changes --- .../main/java/be/mygod/vpnhotspot/net/monitor/VpnMonitor.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/net/monitor/VpnMonitor.kt b/mobile/src/main/java/be/mygod/vpnhotspot/net/monitor/VpnMonitor.kt index 3357fab7..22c223af 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/net/monitor/VpnMonitor.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/net/monitor/VpnMonitor.kt @@ -52,11 +52,11 @@ object VpnMonitor : UpstreamMonitor() { val ifname = properties.interfaceName when { ifname == null -> { - Timber.w(RuntimeException("interfaceName became null: $oldProperties -> $properties")) + Timber.w("interfaceName became null: $oldProperties -> $properties") onLost(network) } ifname != oldProperties.interfaceName -> { - Timber.w(RuntimeException("interfaceName changed: $oldProperties -> $properties")) + Timber.w("interfaceName changed: $oldProperties -> $properties") callbacks.forEach { it.onLost() it.onAvailable(ifname, properties.dnsServers)