Suppress reporting interfaceName changes
This commit is contained in:
@@ -52,11 +52,11 @@ object VpnMonitor : UpstreamMonitor() {
|
|||||||
val ifname = properties.interfaceName
|
val ifname = properties.interfaceName
|
||||||
when {
|
when {
|
||||||
ifname == null -> {
|
ifname == null -> {
|
||||||
Timber.w(RuntimeException("interfaceName became null: $oldProperties -> $properties"))
|
Timber.w("interfaceName became null: $oldProperties -> $properties")
|
||||||
onLost(network)
|
onLost(network)
|
||||||
}
|
}
|
||||||
ifname != oldProperties.interfaceName -> {
|
ifname != oldProperties.interfaceName -> {
|
||||||
Timber.w(RuntimeException("interfaceName changed: $oldProperties -> $properties"))
|
Timber.w("interfaceName changed: $oldProperties -> $properties")
|
||||||
callbacks.forEach {
|
callbacks.forEach {
|
||||||
it.onLost()
|
it.onLost()
|
||||||
it.onAvailable(ifname, properties.dnsServers)
|
it.onAvailable(ifname, properties.dnsServers)
|
||||||
|
|||||||
Reference in New Issue
Block a user