[gnome-builder] workbench: short-circuit if we race to unload
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] workbench: short-circuit if we race to unload
- Date: Wed, 8 Aug 2018 20:23:53 +0000 (UTC)
commit 37793fa843fcd999f28aacdccd46c85018c1153a
Author: Christian Hergert <chergert redhat com>
Date: Wed Aug 8 13:22:15 2018 -0700
workbench: short-circuit if we race to unload
src/libide/workbench/ide-workbench.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/libide/workbench/ide-workbench.c b/src/libide/workbench/ide-workbench.c
index 391d79fab..2d076fb4c 100644
--- a/src/libide/workbench/ide-workbench.c
+++ b/src/libide/workbench/ide-workbench.c
@@ -681,6 +681,9 @@ ide_workbench_set_context (IdeWorkbench *self,
g_return_if_fail (IDE_IS_CONTEXT (context));
g_return_if_fail (self->context == NULL);
+ if (self->unloading)
+ IDE_EXIT;
+
g_set_object (&self->context, context);
project = ide_context_get_project (context);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]