mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2025-04-01 21:06:16 +03:00
Fix: fix network observer
This commit is contained in:
parent
a5ba4b4d23
commit
d20f19c08f
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue