Skip to content

Commit 60bfeac

Browse files
committed
possibly revert (1)
1 parent e25b0c7 commit 60bfeac

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

FirebaseRemoteConfig/SwiftNew/ConfigRealtime.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,6 @@ class ConfigRealtime: NSObject, URLSessionDataDelegate {
562562

563563
if isStatusCodeRetryable(statusCode) {
564564
retryHTTPConnection()
565-
completionHandler(.cancel) // cancel the failing task
566-
567565
} else {
568566
let error = NSError(
569567
domain: RemoteConfigUpdateErrorDomain,
@@ -575,14 +573,13 @@ class ConfigRealtime: NSObject, URLSessionDataDelegate {
575573
)
576574
RCLog.error("I-RCN000021", "Cannot establish connection. Error: \(error)")
577575
propagateErrors(error)
578-
completionHandler(.cancel) // cancel the failing task
579576
}
580577
} else {
581578
// On success, reset retry parameters.
582579
remainingRetryCount = maxRetries
583580
settings.realtimeRetryCount = 0
584-
completionHandler(.allow)
585581
}
582+
completionHandler(.allow)
586583
}
587584
}
588585

0 commit comments

Comments
 (0)