Skip to content

Commit

Permalink
possibly revert (1)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncooke3 committed Jan 3, 2025
1 parent e25b0c7 commit 60bfeac
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions FirebaseRemoteConfig/SwiftNew/ConfigRealtime.swift
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,6 @@ class ConfigRealtime: NSObject, URLSessionDataDelegate {

if isStatusCodeRetryable(statusCode) {
retryHTTPConnection()
completionHandler(.cancel) // cancel the failing task

} else {
let error = NSError(
domain: RemoteConfigUpdateErrorDomain,
Expand All @@ -575,14 +573,13 @@ class ConfigRealtime: NSObject, URLSessionDataDelegate {
)
RCLog.error("I-RCN000021", "Cannot establish connection. Error: \(error)")
propagateErrors(error)
completionHandler(.cancel) // cancel the failing task
}
} else {
// On success, reset retry parameters.
remainingRetryCount = maxRetries
settings.realtimeRetryCount = 0
completionHandler(.allow)
}
completionHandler(.allow)
}
}

Expand Down

0 comments on commit 60bfeac

Please sign in to comment.