Skip to content

Commit

Permalink
Fix mozilla-mobile#6802: onReady() not filling the Deferred in the er…
Browse files Browse the repository at this point in the history
…ror case (mozilla-mobile#6804)
  • Loading branch information
garvankeeley authored and dnarcese committed Jul 14, 2020
1 parent 6febd81 commit 2138699
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 2138699

Please sign in to comment.