Suppress reporting interface becoming null

This commit is contained in:
Mygod
2018-12-14 01:45:54 +08:00
parent cebc807c18
commit 6ae5aba6bb

View File

@@ -48,7 +48,7 @@ object DefaultNetworkMonitor : 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 -> {