[gnome-builder] flatpak: avoid multiple return values for a task
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] flatpak: avoid multiple return values for a task
- Date: Mon, 14 Jan 2019 19:00:49 +0000 (UTC)
commit 0b7e3f8853591b6116d165886d7ff7c723691572
Author: Christian Hergert <chergert redhat com>
Date: Mon Jan 14 10:29:13 2019 -0800
flatpak: avoid multiple return values for a task
Also protects against release on propagate of task state/source object.
src/plugins/flatpak/gbp-flatpak-runtime-provider.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/plugins/flatpak/gbp-flatpak-runtime-provider.c
b/src/plugins/flatpak/gbp-flatpak-runtime-provider.c
index f9fee0a6d..16931512a 100644
--- a/src/plugins/flatpak/gbp-flatpak-runtime-provider.c
+++ b/src/plugins/flatpak/gbp-flatpak-runtime-provider.c
@@ -557,6 +557,9 @@ gbp_flatpak_runtime_provider_bootstrap_cb (GObject *object,
g_assert (IDE_IS_TASK (task));
g_assert (G_IS_ASYNC_RESULT (result));
+ if (ide_task_had_error (task))
+ return;
+
self = ide_task_get_source_object (task);
state = ide_task_get_task_data (task);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]