Skip to content

Commit

Permalink
Fix #6802: onReady() not filling the Deferred in the error case (#6804)
Browse files Browse the repository at this point in the history
  • Loading branch information
garvankeeley committed Jun 16, 2020
1 parent 4b4853b commit 3f50f1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sync/SyncStateMachine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ open class SyncStateMachine {
RustFirefoxAccounts.shared.accountManager.uponQueue(.main) { accountManager in
authState.token(Date.now(), canBeExpired: false).uponQueue(.main) { success in
guard let (token, kSync) = success.successValue else {
assert(false)
readyDeferred.fill(Maybe(failure: success.failureValue ?? FxAClientError.local(NSError())))
return
}
log.debug("Got token from auth state.")
Expand Down

0 comments on commit 3f50f1f

Please sign in to comment.