[gnome-builder/gnome-builder-3-36] flatpak: always call transfer manager finish func



commit 47f383be9507c4b0a03697371295aa633b84973e
Author: Christian Hergert <chergert redhat com>
Date:   Mon Mar 23 14:56:13 2020 -0700

    flatpak: always call transfer manager finish func
    
    Related #1170

 src/plugins/flatpak/gbp-flatpak-runtime-provider.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/src/plugins/flatpak/gbp-flatpak-runtime-provider.c 
b/src/plugins/flatpak/gbp-flatpak-runtime-provider.c
index 725a4bf4c..639855961 100644
--- a/src/plugins/flatpak/gbp-flatpak-runtime-provider.c
+++ b/src/plugins/flatpak/gbp-flatpak-runtime-provider.c
@@ -598,16 +598,13 @@ gbp_flatpak_runtime_provider_bootstrap_install_cb (GObject      *object,
 
   state->count--;
 
-  if (ide_task_had_error (task))
-    return;
-
   /* We might still be able to find the runtime if the transfer fails */
   ide_transfer_manager_execute_finish (transfer_manager, result, &error);
 
   if (error != NULL)
     g_debug ("Transfer failed: %s", error->message);
 
-  if (state->count == 0)
+  if (!ide_task_had_error (task) && state->count == 0)
     gbp_flatpak_runtime_provider_bootstrap_complete (task);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]