mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-14 10:18:15 -04:00
When getting the dynamic remotes for the installed refs, if no refs with a collection ID are found, then the ostree_repo_find_remotes_async is given an array with just NULL, which makes it early return and thus it would result in an infinite loop in flatpak_installation_list_installed_refs_for_update. This patch only tries to find the dynamic remotes when there are such refs, thus preventing the mentioned error and any extra unnecessary processing. Closes: #1587 Approved by: mwleeds