Allow irrelevant info in DefaultNetworkMonitor as well

This commit is contained in:
Mygod
2018-10-08 12:05:41 +08:00
parent a947023332
commit a14f324a90

View File

@@ -38,7 +38,7 @@ object DefaultNetworkMonitor : UpstreamMonitor() {
}
override fun onLinkPropertiesChanged(network: Network, properties: LinkProperties) {
check(currentNetwork == network)
if (currentNetwork != network) return
val oldProperties = currentLinkProperties!!
currentLinkProperties = properties
val ifname = properties.interfaceName!!