diff --git a/service/src/main/java/com/github/kr328/clash/service/clash/module/NetworkObserveModule.kt b/service/src/main/java/com/github/kr328/clash/service/clash/module/NetworkObserveModule.kt index ccf30dfd..1b3bf165 100644 --- a/service/src/main/java/com/github/kr328/clash/service/clash/module/NetworkObserveModule.kt +++ b/service/src/main/java/com/github/kr328/clash/service/clash/module/NetworkObserveModule.kt @@ -41,10 +41,10 @@ class NetworkObserveModule(service: Service) : private var network: Network? = null override fun onAvailable(network: Network) { - this.network = network - if (this.network != network) networks.trySend(network) + + this.network = network } override fun onLinkPropertiesChanged(network: Network, linkProperties: LinkProperties) {