Skip to content
Snippets Groups Projects
Commit d20f19c0 authored by kr328's avatar kr328
Browse files

Fix: fix network observer

parent a5ba4b4d
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment