Reword comment

pull/56/head
Niels Andriesse 6 years ago
parent 298493b927
commit 266e0f3363

@ -131,9 +131,9 @@ public final class LokiAPI : NSObject {
lastDeviceLinkUpdate[hexEncodedPublicKey] = Date()
}.catch { error in
if case LokiDotNetAPI.Error.parsingFailed = error {
// If it's a parsing error then just cache
getDestinations()
// Don't immediately re-fetch in case of failure due to a parsing error
lastDeviceLinkUpdate[hexEncodedPublicKey] = Date()
getDestinations()
} else {
seal.reject(error)
}

Loading…
Cancel
Save