mirror of
https://github.com/signalapp/Signal-iOS.git
synced 2025-12-05 01:10:41 +00:00
Run and log an extra reachability check on app launch
This commit is contained in:
@@ -57,6 +57,9 @@ public class NetworkManager: NetworkManagerProtocol {
|
||||
appReadiness.runNowOrWhenAppDidBecomeReadyAsync {
|
||||
// We did this once already, but doing it properly depends on RemoteConfig.
|
||||
self.resetLibsignalNetProxySettings()
|
||||
// This is redundant with the instance in ReachabilityManager, but that's ok.
|
||||
let reachability = Reachability.forInternetConnection()!
|
||||
Logger.info("Initial preferred network: \(reachability.currentReachabilityString()!)")
|
||||
}
|
||||
} else {
|
||||
self.reachabilityDidChangeObserver = nil
|
||||
|
||||
Reference in New Issue
Block a user