mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2026-05-09 18:11:26 +08:00
Improve: should not reload profile on network changed
This commit is contained in:
@@ -54,8 +54,6 @@ class ClashService : BaseService() {
|
||||
true
|
||||
}
|
||||
network.onEvent {
|
||||
config.reload()
|
||||
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,8 +65,6 @@ class TunService : VpnService(), CoroutineScope by CoroutineScope(Dispatchers.De
|
||||
setUnderlyingNetworks(e.network?.let { arrayOf(it) })
|
||||
}
|
||||
|
||||
config.reload()
|
||||
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,8 +73,4 @@ class ConfigurationModule(service: Service) : Module<ConfigurationModule.LoadExc
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun reload() {
|
||||
reload.trySend(Unit)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user