[gnome-builder] build-manager: avoid pipeline setup during shutdown
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] build-manager: avoid pipeline setup during shutdown
- Date: Thu, 1 Feb 2018 04:12:13 +0000 (UTC)
commit 0545f7b0676d778e5b8f3fca62ffb63d43f89293
Author: Christian Hergert <chergert redhat com>
Date: Wed Jan 31 20:11:09 2018 -0800
build-manager: avoid pipeline setup during shutdown
When we get signal callbacks during context shutdown, avoid new
pipeline setup.
src/libide/buildsystem/ide-build-manager.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/buildsystem/ide-build-manager.c b/src/libide/buildsystem/ide-build-manager.c
index e3e9dd463..7308bca9f 100644
--- a/src/libide/buildsystem/ide-build-manager.c
+++ b/src/libide/buildsystem/ide-build-manager.c
@@ -396,6 +396,8 @@ ide_build_manager_invalidate_pipeline (IdeBuildManager *self)
g_assert (IDE_IS_BUILD_MANAGER (self));
+ context = ide_object_get_context (IDE_OBJECT (self));
+
IDE_TRACE_MSG ("Reloading pipeline due to configuration change");
/*
@@ -425,7 +427,9 @@ ide_build_manager_invalidate_pipeline (IdeBuildManager *self)
self->error_count = 0;
self->warning_count = 0;
- context = ide_object_get_context (IDE_OBJECT (self));
+ /* Don't setup anything new if we're in shutdown */
+ if (ide_context_is_unloading (context))
+ IDE_EXIT;
config_manager = ide_context_get_configuration_manager (context);
config = ide_configuration_manager_get_current (config_manager);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]