|
|
@ -28,14 +28,9 @@ public class OutageDetection: NSObject {
|
|
|
|
ensureCheckTimer()
|
|
|
|
ensureCheckTimer()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||| merged common ancestors
|
|
|
|
// We only show the outage warning when we're certain there's an outage.
|
|
|
|
|
|
|
|
// DNS lookup failures, etc. are not considered an outage.
|
|
|
|
=======
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// We want to be conversative and only
|
|
|
|
|
|
|
|
>>>>>>> Outage detection.
|
|
|
|
|
|
|
|
private func checkForOutageSync() -> Bool {
|
|
|
|
private func checkForOutageSync() -> Bool {
|
|
|
|
let host = CFHostCreateWithName(nil, "uptime.signal.org" as CFString).takeRetainedValue()
|
|
|
|
let host = CFHostCreateWithName(nil, "uptime.signal.org" as CFString).takeRetainedValue()
|
|
|
|
CFHostStartInfoResolution(host, .addresses, nil)
|
|
|
|
CFHostStartInfoResolution(host, .addresses, nil)
|
|
|
|