CLEANUP: Remove updatemetrics from background app refresh

This commit is contained in:
Johnny Lin
2020-10-20 17:52:09 -07:00
parent 8d7c84442d
commit 5407934213

View File

@@ -190,7 +190,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
}
func application(_ application: UIApplication, performFetchWithCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
updateMetrics(.resetIfNeeded, rescheduleNotifications: .withEnergySaving)
// Check 2 conditions for firewall restart, but reload manager first to get non-stale one
FirewallController.shared.refreshManager(completion: { error in
if let e = error {