mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-18 23:16:31 -04:00
When we already have a token for the first repository after probing for no-auth authenticator or testing user-entered credentials, just use that, don't request it again in the loop over repositories. This gives a significant optimization of the prompted-credentials case for registry.redhat.io, which takes 4-5 seconds to generate a token, hopefully avoiding the user thinking something has gone wrong. Signed-off-by: Owen W. Taylor <otaylor@fishsoup.net>